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

Unified Diff: sky/engine/core/rendering/RenderLayer.cpp

Issue 766943003: Remove uses of PaintBehaviorFlattenCompositingLayers (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: patch for landing Created 6 years 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 | « sky/engine/core/rendering/RenderBoxModelObject.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderLayer.cpp
diff --git a/sky/engine/core/rendering/RenderLayer.cpp b/sky/engine/core/rendering/RenderLayer.cpp
index 7ac87f622cf249f953229a5193cba53c437cc3a6..05b8e5602cb839c88f2cd0c05bec872b7f9f8d66 100644
--- a/sky/engine/core/rendering/RenderLayer.cpp
+++ b/sky/engine/core/rendering/RenderLayer.cpp
@@ -274,16 +274,7 @@ TransformationMatrix RenderLayer::currentTransform(RenderStyle::ApplyTransformOr
TransformationMatrix RenderLayer::renderableTransform(PaintBehavior paintBehavior) const
{
- if (!m_transform)
- return TransformationMatrix();
-
- if (paintBehavior & PaintBehaviorFlattenCompositingLayers) {
- TransformationMatrix matrix = *m_transform;
- makeMatrixRenderable(matrix);
- return matrix;
- }
-
- return *m_transform;
+ return m_transform ? *m_transform : TransformationMatrix();
}
RenderLayer* RenderLayer::enclosingOverflowClipLayer(IncludeSelfOrNot includeSelf) const
« no previous file with comments | « sky/engine/core/rendering/RenderBoxModelObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698