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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void styleDidChange(StyleDifference, const ComputedStyle*) override; | 57 void styleDidChange(StyleDifference, const ComputedStyle*) override; |
58 | 58 |
59 void addMetricsFromRun(const TextRun&, bool& lastCharacterWasWhiteSpace); | 59 void addMetricsFromRun(const TextRun&, bool& lastCharacterWasWhiteSpace); |
60 | 60 |
61 FloatRect objectBoundingBox() const override { return floatLinesBoundingBox(
); } | 61 FloatRect objectBoundingBox() const override { return floatLinesBoundingBox(
); } |
62 | 62 |
63 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVG || type == LayoutObjectSVGInlineText || LayoutText::isOfType(type); } | 63 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVG || type == LayoutObjectSVGInlineText || LayoutText::isOfType(type); } |
64 | 64 |
65 PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 65 PositionWithAffinity positionForPoint(const LayoutPoint&) override; |
66 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt
hToEndOfLine = nullptr) override; | 66 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt
hToEndOfLine = nullptr) override; |
67 IntRect linesBoundingBox() const override; | 67 LayoutRect linesBoundingBox() const override; |
68 InlineTextBox* createTextBox(int start, unsigned short length) override; | 68 InlineTextBox* createTextBox(int start, unsigned short length) override; |
69 | 69 |
70 LayoutRect absoluteClippedOverflowRect() const final; | 70 LayoutRect absoluteClippedOverflowRect() const final; |
71 FloatRect paintInvalidationRectInLocalSVGCoordinates() const final; | 71 FloatRect paintInvalidationRectInLocalSVGCoordinates() const final; |
72 | 72 |
73 float m_scalingFactor; | 73 float m_scalingFactor; |
74 Font m_scaledFont; | 74 Font m_scaledFont; |
75 SVGTextLayoutAttributes m_layoutAttributes; | 75 SVGTextLayoutAttributes m_layoutAttributes; |
76 Vector<SVGTextMetrics> m_metrics; | 76 Vector<SVGTextMetrics> m_metrics; |
77 }; | 77 }; |
78 | 78 |
79 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInlineText, isSVGInlineText()); | 79 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInlineText, isSVGInlineText()); |
80 | 80 |
81 } // namespace blink | 81 } // namespace blink |
82 | 82 |
83 #endif // LayoutSVGInlineText_h | 83 #endif // LayoutSVGInlineText_h |
OLD | NEW |