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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp

Issue 2343673003: SVG root viewport clip in paint property tree (Closed)
Patch Set: - Created 4 years, 3 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/LayoutSVGRoot.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
index 5d8be0fb6ca16c43672c636811f306ecb169e6bf..30cd9367328dff87aec89b7799a49a82ed654ed1 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp
@@ -199,9 +199,14 @@ LayoutRect LayoutSVGRoot::visualOverflowRect() const
return rect;
}
+LayoutRect LayoutSVGRoot::overflowClipRect(const LayoutPoint& location, OverlayScrollbarClipBehavior) const
+{
+ return LayoutRect(pixelSnappedIntRect(LayoutReplaced::overflowClipRect(location, IgnoreOverlayScrollbarSize)));
+}
+
void LayoutSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint& paintOffset) const
{
- SVGRootPainter(*this).paint(paintInfo, paintOffset);
+ SVGRootPainter(*this).paintReplaced(paintInfo, paintOffset);
}
void LayoutSVGRoot::willBeDestroyed()

Powered by Google App Engine
This is Rietveld 408576698