[Webkit-unassigned] [Bug 24571] Element is visible even if backface-visibility is 'hidden' and the back is facing towards the viewer.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 13 08:24:05 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=24571


simon.fraser at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #28575|                            |review-
               Flag|                            |




------- Comment #4 from simon.fraser at apple.com  2009-03-13 08:24 PDT -------
(From update of attachment 28575)
> Index: WebCore/rendering/RenderLayer.cpp
> ===================================================================
> --- WebCore/rendering/RenderLayer.cpp	(revision 41663)
> +++ WebCore/rendering/RenderLayer.cpp	(working copy)
> @@ -1955,6 +1955,12 @@ RenderLayer::paintLayer(RenderLayer* roo
>          TransformationMatrix transform;
>          transform.translate(x, y);
>          transform = *m_transform * transform;
> +
> +        // Don't paint anything if backface-visibility is 'hidden' and the back is facing towards the viewer.
> +        if (renderer()->style()->backfaceVisibility() == BackfaceVisibilityHidden) {
> +            if (transform.inverse().m33() < 0)
> +            return;
> +        }

This is wrong; backface-visibility has to take into account the transform to
the root, not just the parent layer. It really needs to be implemented by the
GraphicsLayer machinery.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list