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

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

Issue 1413363003: Always composite position: fixed elements with composited descendants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/layout/compositing/CompositingRequirementsUpdater.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
index df6157087f9d4ea7bc62525332c0243c7686fef5..a58e6425b55b6bc3fa7010436bde00136b7119da 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
@@ -168,6 +168,9 @@ static CompositingReasons subtreeReasonsForCompositing(PaintLayer* layer, bool h
// theres a poor interaction with LayoutTextControlSingleLine, which sets this hasOverflowClip directly.
if (layer->layoutObject()->hasClipOrOverflowClip())
subtreeReasons |= CompositingReasonClipsCompositingDescendants;
+
+ if (layer->layoutObject()->style()->position() == FixedPosition)
+ subtreeReasons |= CompositingReasonPositionFixedWithCompositedDescendants;
}
// A layer with preserve-3d or perspective only needs to be composited if there are descendant layers that

Powered by Google App Engine
This is Rietveld 408576698