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

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

Issue 1161623004: Remove backface visibility (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/rendering/RenderBox.h ('k') | sky/engine/core/rendering/RenderObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderBox.cpp
diff --git a/sky/engine/core/rendering/RenderBox.cpp b/sky/engine/core/rendering/RenderBox.cpp
index c7d70da18919727a3a876f49f452242438096332..15725f8c28db06bb26ba9aa556d5676499dd91cb 100644
--- a/sky/engine/core/rendering/RenderBox.cpp
+++ b/sky/engine/core/rendering/RenderBox.cpp
@@ -637,14 +637,6 @@ bool RenderBox::hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLayer
layer()->stackingNode()->updateLayerListsIfNeeded();
layer()->update3DTransformedDescendantStatus();
- // Check for hit test on backface if backface-visibility is 'hidden'
- if (localTransformState && style()->backfaceVisibility() == BackfaceVisibilityHidden) {
- TransformationMatrix invertedMatrix = localTransformState->m_accumulatedTransform.inverse();
- // If the z-vector of the matrix is negative, the back is facing towards the viewer.
- if (invertedMatrix.m33() < 0)
- return 0;
- }
-
RefPtr<HitTestingTransformState> unflattenedTransformState = localTransformState;
if (localTransformState && !style()->preserves3D()) {
// Keep a copy of the pre-flattening state, for computing z-offsets for the container
« no previous file with comments | « sky/engine/core/rendering/RenderBox.h ('k') | sky/engine/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698