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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.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/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 01825db216bfcbc45fe7b06d16d95043328839c5..62b15589bae3826beed1ee19ccbda28a4d87ceb3 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2709,6 +2709,14 @@ bool PaintLayer::paintsWithTransform(GlobalPaintFlags globalPaintFlags) const {
compositingState() != PaintsIntoOwnBacking);
}
+bool PaintLayer::compositesWithTransform() const {
+ return transformAncestor() || transform();
+}
+
+bool PaintLayer::compositesWithOpacity() const {
+ return opacityAncestor() || layoutObject()->style()->hasOpacity();
+}
+
bool PaintLayer::backgroundIsKnownToBeOpaqueInRect(
const LayoutRect& localRect) const {
if (paintsWithTransparency(GlobalPaintNormalPhase))
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698