Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: Source/WebCore/rendering/svg/RenderSVGText.h

Issue 10443073: Merge 117225 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/rendering/svg/RenderSVGText.h
===================================================================
--- Source/WebCore/rendering/svg/RenderSVGText.h (revision 118874)
+++ Source/WebCore/rendering/svg/RenderSVGText.h (working copy)
@@ -36,6 +36,7 @@
class RenderSVGText : public RenderSVGBlock {
public:
RenderSVGText(SVGTextElement*);
+ virtual ~RenderSVGText();
virtual bool isChildAllowed(RenderObject*, RenderStyle*) const;
@@ -48,18 +49,14 @@
static const RenderSVGText* locateRenderSVGTextAncestor(const RenderObject*);
bool needsReordering() const { return m_needsReordering; }
+ Vector<SVGTextLayoutAttributes*>& layoutAttributes() { return m_layoutAttributes; }
- // Call this method when either the children of a DOM text element have changed, or the length of
- // the text in any child element has changed.
- void invalidateTextPositioningElements();
+ void subtreeChildWasAdded(RenderObject*);
+ void subtreeChildWillBeRemoved(RenderSVGInlineText*, Vector<SVGTextLayoutAttributes*, 2>& affectedAttributes);
+ void subtreeChildWasRemoved(const Vector<SVGTextLayoutAttributes*, 2>& affectedAttributes);
+ void subtreeStyleDidChange(RenderSVGInlineText*);
+ void subtreeTextDidChange(RenderSVGInlineText*);
- void layoutAttributesChanged(RenderObject*);
- void layoutAttributesWillBeDestroyed(RenderSVGInlineText*, Vector<SVGTextLayoutAttributes*>& affectedAttributes);
- void rebuildLayoutAttributes(bool performFullRebuild = false);
- void rebuildLayoutAttributes(Vector<SVGTextLayoutAttributes*>& affectedAttributes);
-
- Vector<SVGTextLayoutAttributes*>& layoutAttributes() { return m_layoutAttributes; }
-
private:
virtual const char* renderName() const { return "RenderSVGText"; }
virtual bool isSVGText() const { return true; }
@@ -80,6 +77,8 @@
virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, bool useTransforms, bool fixed, TransformState&, ApplyContainerFlipOrNot = ApplyContainerFlip, bool* wasFixed = 0) const;
virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0);
+ virtual void removeChild(RenderObject*) OVERRIDE;
+ virtual void willBeDestroyed() OVERRIDE;
virtual FloatRect objectBoundingBox() const { return frameRect(); }
virtual FloatRect strokeBoundingBox() const;
@@ -91,6 +90,8 @@
virtual RenderBlock* firstLineBlock() const;
virtual void updateFirstLetter();
+ bool shouldHandleSubtreeMutations() const;
+
bool m_needsReordering : 1;
bool m_needsPositioningValuesUpdate : 1;
bool m_needsTransformUpdate : 1;
« no previous file with comments | « Source/WebCore/rendering/svg/RenderSVGInlineText.cpp ('k') | Source/WebCore/rendering/svg/RenderSVGText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698