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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void setNeedsTextMetricsUpdate() { m_needsTextMetricsUpdate = true; } | 45 void setNeedsTextMetricsUpdate() { m_needsTextMetricsUpdate = true; } |
46 virtual FloatRect repaintRectInLocalCoordinates() const; | 46 virtual FloatRect repaintRectInLocalCoordinates() const; |
47 | 47 |
48 static RenderSVGText* locateRenderSVGTextAncestor(RenderObject*); | 48 static RenderSVGText* locateRenderSVGTextAncestor(RenderObject*); |
49 static const RenderSVGText* locateRenderSVGTextAncestor(const RenderObject*)
; | 49 static const RenderSVGText* locateRenderSVGTextAncestor(const RenderObject*)
; |
50 | 50 |
51 bool needsReordering() const { return m_needsReordering; } | 51 bool needsReordering() const { return m_needsReordering; } |
52 Vector<SVGTextLayoutAttributes*>& layoutAttributes() { return m_layoutAttrib
utes; } | 52 Vector<SVGTextLayoutAttributes*>& layoutAttributes() { return m_layoutAttrib
utes; } |
53 | 53 |
54 void subtreeChildWasAdded(RenderObject*); | 54 void subtreeChildWasAdded(RenderObject*); |
55 void subtreeChildWillBeRemoved(RenderSVGInlineText*, Vector<SVGTextLayoutAtt
ributes*, 2>& affectedAttributes); | 55 void subtreeChildWillBeRemoved(RenderObject*, Vector<SVGTextLayoutAttributes
*, 2>& affectedAttributes); |
56 void subtreeChildWasRemoved(const Vector<SVGTextLayoutAttributes*, 2>& affec
tedAttributes); | 56 void subtreeChildWasRemoved(const Vector<SVGTextLayoutAttributes*, 2>& affec
tedAttributes); |
57 void subtreeStyleDidChange(RenderSVGInlineText*); | 57 void subtreeStyleDidChange(RenderSVGInlineText*); |
58 void subtreeTextDidChange(RenderSVGInlineText*); | 58 void subtreeTextDidChange(RenderSVGInlineText*); |
59 | 59 |
60 private: | 60 private: |
61 virtual const char* renderName() const { return "RenderSVGText"; } | 61 virtual const char* renderName() const { return "RenderSVGText"; } |
62 virtual bool isSVGText() const { return true; } | 62 virtual bool isSVGText() const { return true; } |
63 | 63 |
64 virtual void paint(PaintInfo&, const LayoutPoint&); | 64 virtual void paint(PaintInfo&, const LayoutPoint&); |
65 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const Layout
Point& pointInContainer, const LayoutPoint& accumulatedOffset, HitTestAction); | 65 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const Layout
Point& pointInContainer, const LayoutPoint& accumulatedOffset, HitTestAction); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 return static_cast<const RenderSVGText*>(object); | 113 return static_cast<const RenderSVGText*>(object); |
114 } | 114 } |
115 | 115 |
116 // This will catch anyone doing an unnecessary cast. | 116 // This will catch anyone doing an unnecessary cast. |
117 void toRenderSVGText(const RenderSVGText*); | 117 void toRenderSVGText(const RenderSVGText*); |
118 | 118 |
119 } | 119 } |
120 | 120 |
121 #endif // ENABLE(SVG) | 121 #endif // ENABLE(SVG) |
122 #endif | 122 #endif |
OLD | NEW |