| 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 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 void setNeedsPositioningValuesUpdate() { m_needsPositioningValuesUpdate = tr
ue; } | 42 void setNeedsPositioningValuesUpdate() { m_needsPositioningValuesUpdate = tr
ue; } |
| 43 virtual void setNeedsTransformUpdate() { m_needsTransformUpdate = true; } | 43 virtual void setNeedsTransformUpdate() { m_needsTransformUpdate = true; } |
| 44 virtual FloatRect repaintRectInLocalCoordinates() const; | 44 virtual FloatRect repaintRectInLocalCoordinates() const; |
| 45 | 45 |
| 46 static RenderSVGText* locateRenderSVGTextAncestor(RenderObject*); | 46 static RenderSVGText* locateRenderSVGTextAncestor(RenderObject*); |
| 47 static const RenderSVGText* locateRenderSVGTextAncestor(const RenderObject*)
; | 47 static const RenderSVGText* locateRenderSVGTextAncestor(const RenderObject*)
; |
| 48 | 48 |
| 49 bool needsReordering() const { return m_needsReordering; } | 49 bool needsReordering() const { return m_needsReordering; } |
| 50 | 50 |
| 51 void textDOMChanged(); | 51 // Call this method when either the children of a DOM text element have chan
ged, or the length of |
| 52 // the text in any child element has changed. |
| 53 void invalidateTextPositioningElements(); |
| 54 |
| 52 void layoutAttributesChanged(RenderObject*); | 55 void layoutAttributesChanged(RenderObject*); |
| 53 void layoutAttributesWillBeDestroyed(RenderSVGInlineText*, Vector<SVGTextLay
outAttributes*>& affectedAttributes); | 56 void layoutAttributesWillBeDestroyed(RenderSVGInlineText*, Vector<SVGTextLay
outAttributes*>& affectedAttributes); |
| 54 void rebuildLayoutAttributes(bool performFullRebuild = false); | 57 void rebuildLayoutAttributes(bool performFullRebuild = false); |
| 55 void rebuildLayoutAttributes(Vector<SVGTextLayoutAttributes*>& affectedAttri
butes); | 58 void rebuildLayoutAttributes(Vector<SVGTextLayoutAttributes*>& affectedAttri
butes); |
| 56 | 59 |
| 57 Vector<SVGTextLayoutAttributes*>& layoutAttributes() { return m_layoutAttrib
utes; } | 60 Vector<SVGTextLayoutAttributes*>& layoutAttributes() { return m_layoutAttrib
utes; } |
| 58 | 61 |
| 59 private: | 62 private: |
| 60 virtual const char* renderName() const { return "RenderSVGText"; } | 63 virtual const char* renderName() const { return "RenderSVGText"; } |
| 61 virtual bool isSVGText() const { return true; } | 64 virtual bool isSVGText() const { return true; } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 return static_cast<const RenderSVGText*>(object); | 110 return static_cast<const RenderSVGText*>(object); |
| 108 } | 111 } |
| 109 | 112 |
| 110 // This will catch anyone doing an unnecessary cast. | 113 // This will catch anyone doing an unnecessary cast. |
| 111 void toRenderSVGText(const RenderSVGText*); | 114 void toRenderSVGText(const RenderSVGText*); |
| 112 | 115 |
| 113 } | 116 } |
| 114 | 117 |
| 115 #endif // ENABLE(SVG) | 118 #endif // ENABLE(SVG) |
| 116 #endif | 119 #endif |
| OLD | NEW |