| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGHiddenContainer.h
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGHiddenContainer.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGHiddenContainer.h
|
| index 9869b55ab4ca695008771015260c26ae4fd818cb..59a90656971338efc00417001860f3b1e3b20dd7 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGHiddenContainer.h
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGHiddenContainer.h
|
| @@ -34,6 +34,12 @@ class LayoutSVGHiddenContainer : public LayoutSVGContainer {
|
|
|
| const char* name() const override { return "LayoutSVGHiddenContainer"; }
|
|
|
| + // DisplayItemClient implementation.
|
| + bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const final {
|
| + // LayoutSVGHiddenContainer paints nothing.
|
| + return true;
|
| + }
|
| +
|
| protected:
|
| void layout() override;
|
|
|
| @@ -43,11 +49,7 @@ class LayoutSVGHiddenContainer : public LayoutSVGContainer {
|
| }
|
|
|
| private:
|
| - // LayoutSVGHiddenContainer paints nothing.
|
| void paint(const PaintInfo&, const LayoutPoint&) const final {}
|
| - bool paintedOutputOfObjectHasNoEffectRegardlessOfSize() const final {
|
| - return true;
|
| - }
|
| LayoutRect absoluteVisualRect() const final { return LayoutRect(); }
|
| FloatRect visualRectInLocalSVGCoordinates() const final {
|
| return FloatRect();
|
|
|