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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 FloatRect floatLinesBoundingBox() const; | 44 FloatRect floatLinesBoundingBox() const; |
45 | 45 |
46 private: | 46 private: |
47 virtual const char* renderName() const override { return "RenderSVGInlineTex
t"; } | 47 virtual const char* renderName() const override { return "RenderSVGInlineTex
t"; } |
48 | 48 |
49 virtual void setTextInternal(PassRefPtr<StringImpl>) override; | 49 virtual void setTextInternal(PassRefPtr<StringImpl>) override; |
50 virtual void styleDidChange(StyleDifference, const RenderStyle*) override; | 50 virtual void styleDidChange(StyleDifference, const RenderStyle*) override; |
51 | 51 |
52 virtual FloatRect objectBoundingBox() const override { return floatLinesBoun
dingBox(); } | 52 virtual FloatRect objectBoundingBox() const override { return floatLinesBoun
dingBox(); } |
53 | 53 |
54 virtual bool isSVGInlineText() const override { return true; } | 54 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectSVG || type == RenderObjectSVGInlineText || RenderText::isOfType(ty
pe); } |
55 virtual bool isSVG() const override { return true; } | |
56 | 55 |
57 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 56 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override; |
58 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; | 57 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; |
59 virtual IntRect linesBoundingBox() const override; | 58 virtual IntRect linesBoundingBox() const override; |
60 virtual InlineTextBox* createTextBox(int start, unsigned short length) overr
ide; | 59 virtual InlineTextBox* createTextBox(int start, unsigned short length) overr
ide; |
61 | 60 |
62 float m_scalingFactor; | 61 float m_scalingFactor; |
63 Font m_scaledFont; | 62 Font m_scaledFont; |
64 SVGTextLayoutAttributes m_layoutAttributes; | 63 SVGTextLayoutAttributes m_layoutAttributes; |
65 }; | 64 }; |
66 | 65 |
67 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGInlineText, isSVGInlineText()); | 66 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGInlineText, isSVGInlineText()); |
68 | 67 |
69 } | 68 } |
70 | 69 |
71 #endif // RenderSVGInlineText_h | 70 #endif // RenderSVGInlineText_h |
OLD | NEW |