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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 virtual FloatRect objectBoundingBox() const override { return floatLinesBoun
dingBox(); } | 54 virtual FloatRect objectBoundingBox() const override { return floatLinesBoun
dingBox(); } |
55 | 55 |
56 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectSVG || type == LayoutObjectSVGInlineText || RenderText::isOfType(ty
pe); } | 56 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectSVG || type == LayoutObjectSVGInlineText || RenderText::isOfType(ty
pe); } |
57 | 57 |
58 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 58 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override; |
59 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; | 59 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; |
60 virtual IntRect linesBoundingBox() const override; | 60 virtual IntRect linesBoundingBox() const override; |
61 virtual InlineTextBox* createTextBox(int start, unsigned short length) overr
ide; | 61 virtual InlineTextBox* createTextBox(int start, unsigned short length) overr
ide; |
62 | 62 |
63 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutLayer
ModelObject* paintInvalidationContainer, const PaintInvalidationState*) const ov
erride final; | 63 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo
delObject* paintInvalidationContainer, const PaintInvalidationState*) const over
ride final; |
64 | 64 |
65 float m_scalingFactor; | 65 float m_scalingFactor; |
66 Font m_scaledFont; | 66 Font m_scaledFont; |
67 SVGTextLayoutAttributes m_layoutAttributes; | 67 SVGTextLayoutAttributes m_layoutAttributes; |
68 }; | 68 }; |
69 | 69 |
70 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInlineText, isSVGInlineText()); | 70 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInlineText, isSVGInlineText()); |
71 | 71 |
72 } | 72 } |
73 | 73 |
74 #endif // LayoutSVGInlineText_h | 74 #endif // LayoutSVGInlineText_h |
OLD | NEW |