OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. |
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 FloatRect strokeBoundingBox() const override; | 46 FloatRect strokeBoundingBox() const override; |
47 bool isObjectBoundingBoxValid() const; | 47 bool isObjectBoundingBoxValid() const; |
48 | 48 |
49 static LayoutSVGText* locateLayoutSVGTextAncestor(LayoutObject*); | 49 static LayoutSVGText* locateLayoutSVGTextAncestor(LayoutObject*); |
50 static const LayoutSVGText* locateLayoutSVGTextAncestor(const LayoutObject*)
; | 50 static const LayoutSVGText* locateLayoutSVGTextAncestor(const LayoutObject*)
; |
51 | 51 |
52 bool needsReordering() const { return m_needsReordering; } | 52 bool needsReordering() const { return m_needsReordering; } |
53 Vector<SVGTextLayoutAttributes*>& layoutAttributes() { return m_layoutAttrib
utes; } | 53 Vector<SVGTextLayoutAttributes*>& layoutAttributes() { return m_layoutAttrib
utes; } |
54 | 54 |
55 void subtreeChildWasAdded(LayoutObject*); | 55 void subtreeChildWasAdded(LayoutObject*); |
56 void subtreeChildWillBeRemoved(LayoutObject*, Vector<SVGTextLayoutAttributes
*, 2>& affectedAttributes); | 56 void subtreeChildWillBeRemoved(LayoutObject*); |
57 void subtreeChildWasRemoved(const Vector<SVGTextLayoutAttributes*, 2>& affec
tedAttributes); | |
58 void subtreeTextDidChange(LayoutSVGInlineText*); | 57 void subtreeTextDidChange(LayoutSVGInlineText*); |
59 | 58 |
60 const AffineTransform& localToSVGParentTransform() const override { return m
_localTransform; } | 59 const AffineTransform& localToSVGParentTransform() const override { return m
_localTransform; } |
61 | 60 |
62 const char* name() const override { return "LayoutSVGText"; } | 61 const char* name() const override { return "LayoutSVGText"; } |
63 | 62 |
64 private: | 63 private: |
65 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVGText || LayoutSVGBlock::isOfType(type); } | 64 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectSVGText || LayoutSVGBlock::isOfType(type); } |
66 | 65 |
67 void paint(const PaintInfo&, const LayoutPoint&) const override; | 66 void paint(const PaintInfo&, const LayoutPoint&) const override; |
(...skipping 20 matching lines...) Expand all Loading... |
88 bool m_needsTextMetricsUpdate : 1; | 87 bool m_needsTextMetricsUpdate : 1; |
89 SVGTextLayoutAttributesBuilder m_layoutAttributesBuilder; | 88 SVGTextLayoutAttributesBuilder m_layoutAttributesBuilder; |
90 Vector<SVGTextLayoutAttributes*> m_layoutAttributes; | 89 Vector<SVGTextLayoutAttributes*> m_layoutAttributes; |
91 }; | 90 }; |
92 | 91 |
93 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGText, isSVGText()); | 92 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGText, isSVGText()); |
94 | 93 |
95 } // namespace blink | 94 } // namespace blink |
96 | 95 |
97 #endif | 96 #endif |
OLD | NEW |