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

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

Issue 2028893002: Disallow fragmentation of composited content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/CompositingLayerAssigner.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingLayerAssigner.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingLayerAssigner.cpp
index 9f52edc41a5884628ef57099d8c1887698fa7c43..5dd80bbd55d96439d18b49d57dcf6d6cd3e4f63f 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingLayerAssigner.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingLayerAssigner.cpp
@@ -183,6 +183,9 @@ SquashingDisallowedReasons CompositingLayerAssigner::getReasonsPreventingSquashi
|| squashingLayer.layoutObject()->style()->shouldCompositeForCurrentAnimations())
return SquashingDisallowedReasonSquashingLayerIsAnimating;
+ if (layer->enclosingPaginationLayer())
+ return SquashingDisallowedReasonFragmentedContent;
+
return SquashingDisallowedReasonsNone;
}

Powered by Google App Engine
This is Rietveld 408576698