Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h |
index 0a187c0806904bfa333c4d709481a4b8ba85d272..818d50b7419c05b91cbcb99d7c2d7f1875c16f7c 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.h |
@@ -136,6 +136,11 @@ class CORE_EXPORT LayoutSVGRoot final : public LayoutReplaced { |
LayoutRect localOverflowRectForPaintInvalidation() const override; |
+ bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const final { |
+ // The rule is the same as LayoutBox's instead of LayoutReplaced's. |
+ return LayoutBox::paintedOutputOfObjectHasNoEffectRegardlessOfSize(); |
+ } |
+ |
void mapLocalToAncestor( |
const LayoutBoxModelObject* ancestor, |
TransformState&, |