Index: Source/core/rendering/svg/RenderSVGRoot.h |
diff --git a/Source/core/rendering/svg/RenderSVGRoot.h b/Source/core/rendering/svg/RenderSVGRoot.h |
index 409fee89b7e3e5ca922d089549c7c326a71f8fac..d8c90c5ca062367a63f5181621d94932d5d040e5 100644 |
--- a/Source/core/rendering/svg/RenderSVGRoot.h |
+++ b/Source/core/rendering/svg/RenderSVGRoot.h |
@@ -44,6 +44,9 @@ public: |
void slowFirstChild() const WTF_DELETED_FUNCTION; |
void slowLastChild() const WTF_DELETED_FUNCTION; |
+ RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } |
+ RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); return children()->lastChild(); } |
+ |
bool isLayoutSizeChanged() const { return m_isLayoutSizeChanged; } |
virtual void setNeedsBoundariesUpdate() override { m_needsBoundariesOrTransformUpdate = true; } |
virtual void setNeedsTransformUpdate() override { m_needsBoundariesOrTransformUpdate = true; } |
@@ -63,10 +66,9 @@ public: |
const AffineTransform& localToBorderBoxTransform() const { return m_localToBorderBoxTransform; } |
bool shouldApplyViewportClip() const; |
-private: |
- RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } |
- RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); return children()->lastChild(); } |
+ |
+private: |
const RenderObjectChildList* children() const { return &m_children; } |
RenderObjectChildList* children() { return &m_children; } |