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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2595593002: Fix CSS clips cannot be correctly handled by composited scroller (Closed)
Patch Set: Created 4 years 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 | « no previous file | 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/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index 7d0a445d4c49cfe9bc86cec82fa8d93f46933928..2df3456bcfaa6ba6bc5be701bc07a9111c9d11b2 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1754,7 +1754,8 @@ static bool layerNeedsCompositedScrolling(
// with the results.
return !(layer->size().isEmpty() || layer->hasDescendantWithClipPath() ||
layer->hasAncestorWithClipPath() ||
- layer->layoutObject()->style()->hasBorderRadius());
+ layer->layoutObject()->style()->hasBorderRadius() ||
+ !layer->layoutObject()->style()->hasAutoClip());
chrishtr 2016/12/28 16:17:44 Instead, write this: layer->layoutObject()->hasCl
yigu 2016/12/28 18:42:06 Done.
}
void PaintLayerScrollableArea::updateNeedsCompositedScrolling(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698