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

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

Issue 2599043003: Add transform and background not opaque as main thread scrolling reasons (Closed)
Patch Set: Make styleRelatedMainThreadScrollingReasonTest a class Created 3 years, 12 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/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index 7a7d3894ed88097c3eff07c36ea5c819f6b11e88..d5748a61a533ed93610300bda459836bfcd96972 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1753,6 +1753,15 @@ bool PaintLayerScrollableArea::computeNeedsCompositedScrolling(
addStyleRelatedMainThreadScrollingReasons(
MainThreadScrollingReason::kHasOpacity);
}
+ if (layer->compositesWithTransform()) {
+ addStyleRelatedMainThreadScrollingReasons(
+ MainThreadScrollingReason::kHasTransform);
+ }
+ if (!layer->backgroundIsKnownToBeOpaqueInRect(
+ toLayoutBox(layer->layoutObject())->paddingBoxRect())) {
+ addStyleRelatedMainThreadScrollingReasons(
+ MainThreadScrollingReason::kBackgroundNotOpaqueInRect);
+ }
return false;
}

Powered by Google App Engine
This is Rietveld 408576698