diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGContainer.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGContainer.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGContainer.h b/chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGContainer.h index fd4e74db96b..b7235fbaded 100644 --- a/chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGContainer.h +++ b/chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGContainer.h @@ -37,12 +37,15 @@ public: RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); return children()->lastChild(); } + // If you have a RenderSVGContainer, use firstChild or lastChild instead. + void slowFirstChild() const WTF_DELETED_FUNCTION; + void slowLastChild() const WTF_DELETED_FUNCTION; + const RenderObjectChildList* children() const { return &m_children; } RenderObjectChildList* children() { return &m_children; } - virtual void paint(PaintInfo&, const LayoutPoint&); + virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; virtual void setNeedsBoundariesUpdate() OVERRIDE FINAL { m_needsBoundariesUpdate = true; } - virtual bool needsBoundariesUpdate() OVERRIDE FINAL { return m_needsBoundariesUpdate; } virtual bool didTransformToRootUpdate() { return false; } bool isObjectBoundingBoxValid() const { return m_objectBoundingBoxValid; } @@ -51,9 +54,9 @@ protected: virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL { return children(); } virtual bool isSVGContainer() const OVERRIDE FINAL { return true; } - virtual const char* renderName() const { return "RenderSVGContainer"; } + virtual const char* renderName() const OVERRIDE { return "RenderSVGContainer"; } - virtual void layout(); + virtual void layout() OVERRIDE; virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OVERRIDE FINAL; virtual void removeChild(RenderObject*) OVERRIDE FINAL; @@ -61,9 +64,9 @@ protected: virtual FloatRect objectBoundingBox() const OVERRIDE FINAL { return m_objectBoundingBox; } virtual FloatRect strokeBoundingBox() const OVERRIDE FINAL { return m_strokeBoundingBox; } - virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE FINAL { return m_repaintBoundingBox; } + virtual FloatRect paintInvalidationRectInLocalCoordinates() const OVERRIDE FINAL { return m_repaintBoundingBox; } - virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const FloatPoint& pointInParent, HitTestAction); + virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const FloatPoint& pointInParent, HitTestAction) OVERRIDE; // Allow RenderSVGTransformableContainer to hook in at the right time in layout() virtual bool calculateLocalTransform() { return false; } |