OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
3 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
4 * Copyright (C) 2008 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2008 Rob Buis <buis@kde.org> |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) OVERRIDE F
INAL; | 58 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) OVERRIDE F
INAL; |
59 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0); | 59 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0); |
60 virtual IntRect linesBoundingBox() const; | 60 virtual IntRect linesBoundingBox() const; |
61 virtual InlineTextBox* createTextBox(); | 61 virtual InlineTextBox* createTextBox(); |
62 | 62 |
63 float m_scalingFactor; | 63 float m_scalingFactor; |
64 Font m_scaledFont; | 64 Font m_scaledFont; |
65 SVGTextLayoutAttributes m_layoutAttributes; | 65 SVGTextLayoutAttributes m_layoutAttributes; |
66 }; | 66 }; |
67 | 67 |
68 inline RenderSVGInlineText* toRenderSVGInlineText(RenderObject* object) | 68 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGInlineText, isSVGInlineText()); |
69 { | |
70 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGInlineText()); | |
71 return static_cast<RenderSVGInlineText*>(object); | |
72 } | |
73 | |
74 inline const RenderSVGInlineText* toRenderSVGInlineText(const RenderObject* obje
ct) | |
75 { | |
76 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGInlineText()); | |
77 return static_cast<const RenderSVGInlineText*>(object); | |
78 } | |
79 | |
80 // This will catch anyone doing an unnecessary cast. | |
81 void toRenderSVGInlineText(const RenderSVGInlineText*); | |
82 | 69 |
83 } | 70 } |
84 | 71 |
85 #endif // RenderSVGInlineText_h | 72 #endif // RenderSVGInlineText_h |
OLD | NEW |