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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp

Issue 2459393003: Only promote fixed position elements on low dpi without transform or opacity. (Closed)
Patch Set: Reset tests which are no longer composited to old expectations. Created 4 years, 1 month 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/compositing/CompositingReasonFinder.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
index e702b1b52e050cc6127aaf1821ba983101cb3061..79777cffaf1d34fb2e44eedef1cd7a4609032a25 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
@@ -187,7 +187,8 @@ bool CompositingReasonFinder::requiresCompositingForScrollDependentPosition(
if (!(m_compositingTriggers & ViewportConstrainedPositionedTrigger) &&
(!RuntimeEnabledFeatures::compositeOpaqueFixedPositionEnabled() ||
!layer->backgroundIsKnownToBeOpaqueInRect(
- LayoutRect(layer->boundingBoxForCompositing())))) {
+ LayoutRect(layer->boundingBoxForCompositing())) ||
+ layer->compositesWithTransform() || layer->compositesWithOpacity())) {
return false;
}
// Don't promote fixed position elements that are descendants of a non-view

Powered by Google App Engine
This is Rietveld 408576698