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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp

Issue 2851763004: Remove LayoutObject::LayerCreationAllowedForSubtree. (Closed)
Patch Set: Created 3 years, 8 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/LayoutBoxModelObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
index b8341c6969ea7ad8634c4d7b38e3d41af6bb9e52..da8607bd6916146c8fe94b8227354113cd58947c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
@@ -326,7 +326,7 @@ void LayoutBoxModelObject::StyleDidChange(StyleDifference diff,
PaintLayerType type = LayerTypeRequired();
if (type != kNoPaintLayer) {
- if (!Layer() && LayerCreationAllowedForSubtree()) {
+ if (!Layer()) {
if (was_floating_before_style_changed && IsFloating())
SetChildNeedsLayout();
CreateLayerAfterStyleChange();

Powered by Google App Engine
This is Rietveld 408576698