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

Unified Diff: cc/layers/layer.cc

Issue 2683433002: Set m_graphicsLayer as fixed position container (Closed)
Patch Set: Add test, remove cc workaround Created 3 years, 10 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 | « no previous file | third_party/WebKit/LayoutTests/compositing/fixed-position-container.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 5a4a4c9d8935ade65c534242fc567184ab65d2bf..77a74d264894355130840a3eb933dda86c537ccf 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -600,10 +600,6 @@ void Layer::SetPosition(const gfx::PointF& position) {
}
bool Layer::IsContainerForFixedPositionLayers() const {
- if (!inputs_.transform.IsIdentityOrTranslation())
- return true;
- if (parent_ && !parent_->inputs_.transform.IsIdentityOrTranslation())
- return true;
return inputs_.is_container_for_fixed_position_layers;
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/compositing/fixed-position-container.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698