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

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

Issue 1987283003: Use counters for opacity with transform-style:preserve-3d (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/GraphicsLayerUpdater.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerUpdater.cpp b/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerUpdater.cpp
index 5c690c9beb034319646c20b102ee3c638d26bbb8..a88057974a405541d64de5e618a1cf54d201d0f5 100644
--- a/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerUpdater.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerUpdater.cpp
@@ -103,6 +103,10 @@ void GraphicsLayerUpdater::updateRecursive(PaintLayer& layer, UpdateType updateT
scrollableArea->positionOverflowControls();
updateType = mapping->updateTypeForChildren(updateType);
mapping->clearNeedsGraphicsLayerUpdate();
+
+ const ComputedStyle& style = layer.layoutObject()->styleRef();
+ if (style.preserves3D() && style.hasOpacity() && layer.has3DTransformedDescendant())
chrishtr 2016/05/18 23:16:03 Does this account for whether the child flattens i
chrishtr 2016/05/18 23:22:10 Also, I was expecting this usecounter to be in CLM
trchen 2016/05/19 00:33:28 Done.
+ UseCounter::count(layer.layoutObject()->document(), UseCounter::OpacityWithPreserve3DQuirk);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/core/paint/PaintLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698