15c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)/* 25c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> 35c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2006 Apple Computer Inc. 45c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 55c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * This library is free software; you can redistribute it and/or 65c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * modify it under the terms of the GNU Library General Public 75c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * License as published by the Free Software Foundation; either 85c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * version 2 of the License, or (at your option) any later version. 95c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 105c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * This library is distributed in the hope that it will be useful, 115c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * but WITHOUT ANY WARRANTY; without even the implied warranty of 125c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 135c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Library General Public License for more details. 145c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 155c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * You should have received a copy of the GNU Library General Public License 165c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * along with this library; see the file COPYING.LIB. If not, write to 175c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 185c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Boston, MA 02110-1301, USA. 195c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) */ 205c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 215c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)#ifndef SVGInlineFlowBox_h 225c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)#define SVGInlineFlowBox_h 235c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 2453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)#include "core/rendering/InlineFlowBox.h" 255c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 26c1847b1379d12d0e05df27436bf19a9b1bf12deaTorne (Richard Coles)namespace blink { 275c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 2853e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)class SVGInlineFlowBox FINAL : public InlineFlowBox { 295c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)public: 30d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles) SVGInlineFlowBox(RenderObject& obj) 315c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) : InlineFlowBox(obj) 325c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) , m_logicalHeight(0) 335c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) { 345c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) } 355c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 3609380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual bool isSVGInlineFlowBox() const OVERRIDE { return true; } 3709380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual float virtualLogicalHeight() const OVERRIDE { return m_logicalHeight; } 385c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) void setLogicalHeight(float h) { m_logicalHeight = h; } 395c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 405c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) void paintSelectionBackground(PaintInfo&); 4109380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom) OVERRIDE; 425c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 4309380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual FloatRect calculateBoundaries() const OVERRIDE; 445c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 455c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)private: 465c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) float m_logicalHeight; 475c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)}; 485c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 49a854de003a23bf3c7f95ec0f8154ada64092ff5cTorne (Richard Coles)DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineFlowBox); 500019e4eead4d990e4304c54a9028aca9122fb256Ben Murdoch 51c1847b1379d12d0e05df27436bf19a9b1bf12deaTorne (Richard Coles)} // namespace blink 525c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 535c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)#endif // SVGInlineFlowBox_h 54