2009-01-28 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Jan 2009 19:40:47 +0000 (19:40 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Jan 2009 19:40:47 +0000 (19:40 +0000)
commit4c6a3efe1770c3559ade450767a33f4b35202678
tree298eed2b99034f176baf9805d3ac6ab52e179346
parent0defa516e760686418ab9f24fb6aa18c266e4c6f
2009-01-28  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dave Hyatt

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

        Fix assertions when inline elements have both opacity (or something
        else that creates a RenderLayer), and transform by ensuring that
        setHasTransform() is only called for non-inline or replaced elements.
        We also have to ensure that RenderReplicas will get transforms applied
        to them by lying about them being replaced.

        Tests: fast/transforms/transform-on-inline.html
               fast/transforms/transform-table-row.html

        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::styleDidChange):
        * rendering/RenderReplica.cpp:
        (WebCore::RenderReplica::RenderReplica):
        * rendering/RenderTableRow.h:
        (WebCore::RenderTableRow::requiresLayer):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/transforms/transform-on-inline.html [new file with mode: 0644]
LayoutTests/fast/transforms/transform-table-row.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/transforms/transform-on-inline-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/transforms/transform-on-inline-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/transforms/transform-on-inline-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/fast/transforms/transform-table-row-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/transforms/transform-table-row-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/transforms/transform-table-row-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderBox.cpp
WebCore/rendering/RenderReplica.cpp
WebCore/rendering/RenderTableRow.h