2011-06-01 David Carson <dacarson@apple.com>
authorcommit-queue <commit-queue@webkit.org>
Wed, 1 Jun 2011 21:42:43 +0000 (21:42 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 2 Jun 2011 13:40:43 +0000 (10:40 -0300)
commit695e84c38f9be912e6012a23577e3d7ea7a1a3aa
tree4992a9c7efeda40a2569279e0bd8fae74cb864b0
parent11f8b63c159d1863b0495f9c297a3000fb1c7417
2011-06-01  David Carson  <dacarson@apple.com>

        Reviewed by Antti Koivisto.

        Don't flatten frames that have a zero size.
        https://bugs.webkit.org/show_bug.cgi?id=61831

        This tests creates an iframe that has a width and height of zero
        and ensures that the iframe is not flattened to the size of the
        containing content.

        * fast/frames/flattening/iframe-flattening-fixed-width-and-height-zero-size.html: Added.
        * fast/frames/flattening/iframe-flattening-fixed-width-and-height-zero-size-expected.txt: Added.
2011-06-01  David Carson  <dacarson@apple.com>

        Reviewed by Antti Koivisto.

        https://bugs.webkit.org/show_bug.cgi?id=61831
        If width and height of an iframe is fixed and should not be visible, then
        it shouldn't be flattened.

        Test: fast/frames/flattening/iframe-flattening-fixed-width-and-height-zero-size.html

        * rendering/RenderIFrame.cpp:
        (WebCore::RenderIFrame::flattenFrame): add a check for a zero width or height

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/frames/flattening/iframe-flattening-fixed-width-and-height-zero-size-expected.txt [new file with mode: 0644]
LayoutTests/fast/frames/flattening/iframe-flattening-fixed-width-and-height-zero-size.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderIFrame.cpp