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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGHiddenContainer.h

Issue 2713673005: client-goodbye
Patch Set: Created 3 years, 10 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: 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();

Powered by Google App Engine
This is Rietveld 408576698