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

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

Issue 2818533004: Fix backface-visibility with will-change (Closed)
Patch Set: reduce layout test + flag expectation 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
« no previous file with comments | « third_party/WebKit/LayoutTests/compositing/will-change/will-change-preserve-backface-visibility-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index 4113f099d81c63b52f95a89b7dd3474585c1c687..445b2ad8364fdaf98ac5f7ef66b7d2379952c3da 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -1333,6 +1333,9 @@ void CompositedLayerMapping::UpdateOverflowControlsHostLayerGeometry(
ToLayoutBox(owning_layer_.GetLayoutObject()).PixelSnappedBorderBoxRect();
overflow_controls_host_layer_->SetSize(FloatSize(border_box.Size()));
overflow_controls_host_layer_->SetMasksToBounds(true);
+ overflow_controls_host_layer_->SetBackfaceVisibility(
+ owning_layer_.GetLayoutObject().Style()->BackfaceVisibility() ==
+ kBackfaceVisibilityVisible);
}
void CompositedLayerMapping::UpdateChildContainmentLayerGeometry(
« no previous file with comments | « third_party/WebKit/LayoutTests/compositing/will-change/will-change-preserve-backface-visibility-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698