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

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 7a098e407c3170d03fdbc948ebb001ca222ec3f6..569f824ce561faae65f69584934c582c1fd5bb9f 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2718,6 +2718,12 @@ bool PaintLayer::hasCompositedClippingMask() const {
}
bool PaintLayer::paintsWithTransform(GlobalPaintFlags globalPaintFlags) const {
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) {
+ return transform() &&
+ ((globalPaintFlags & GlobalPaintFlattenCompositingLayers) ||
+ compositingState() != PaintsIntoOwnBacking);
+ }
+
return (transform() ||
layoutObject()->style()->position() == FixedPosition) &&
((globalPaintFlags & GlobalPaintFlattenCompositingLayers) ||

Powered by Google App Engine
This is Rietveld 408576698