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

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

Issue 2570423003: Remove paintOffsetTranslation for fixed-position elements. (Closed)
Patch Set: none 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
Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index de0ed6011d1012d7f5f62c2db0e88ad7d791019e..16eed4eb7480881952134fea0e0004f23a5fd6bf 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2753,6 +2753,8 @@ bool PaintLayer::hasCompositedClippingMask() const {
}
bool PaintLayer::paintsWithTransform(GlobalPaintFlags globalPaintFlags) const {
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
+ return transform();
return (transform() ||
layoutObject()->style()->position() == FixedPosition) &&
((globalPaintFlags & GlobalPaintFlattenCompositingLayers) ||

Powered by Google App Engine
This is Rietveld 408576698