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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 1971843002: Fix paint invalidation rect of LayoutView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index edffcbc88e4da8d531a89317fb15519b58254808..939b94500ec2a7b95be789cd6ff6019e08a9ab4d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -323,6 +323,13 @@ LayoutRect LayoutView::visualOverflowRect() const
return LayoutRect(documentRect());
}
+LayoutRect LayoutView::localOverflowRectForPaintInvalidation() const
+{
+ // TODO(wangxianzhu): This is only required without rootLayerScrolls (though it is also correct
+ // but unnecessary with rootLayerScrolls) because of the special LayoutView overflow model.
+ return visualOverflowRect();
+}
+
void LayoutView::mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState& transformState, MapCoordinatesFlags mode) const
{
if (!ancestor && mode & UseTransforms && shouldUseTransformFromContainer(0)) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698