2011-05-18 Rob Buis <rbuis@rim.com>
authorRob Buis <rwlbuis@webkit.org>
Wed, 18 May 2011 16:08:39 +0000 (16:08 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 26 May 2011 20:23:10 +0000 (17:23 -0300)
commit51381f81089dc86524e1ec27a40502aa97529e2f
tree716df344b3060ee81dc6f3d9931009977e1267a4
parent409b9ad091f0e70011a8ef72f6f8edef7d4af4e3
2011-05-18  Rob Buis  <rbuis@rim.com>

        Reviewed by Nikolas Zimmermann.

        NULL deref when SVG elements have table styles
        https://bugs.webkit.org/show_bug.cgi?id=45561

        Restrict computed CSS values for SVG display property to block, inline or none.

        Tests: svg/custom/display-table-caption-foreignObject.svg
               svg/custom/display-table-caption-inherit-foreignObject.xhtml
               svg/custom/display-table-caption-inherit-text.xhtml
               svg/custom/display-table-caption-text.svg

        * css/CSSStyleSelector.cpp:
        (WebCore::SVGDisplayPropertyGuard::SVGDisplayPropertyGuard):
        (WebCore::SVGDisplayPropertyGuard::~SVGDisplayPropertyGuard):
        (WebCore::isAcceptableForSVGElement):
        (WebCore::CSSStyleSelector::applyProperty):
2011-05-18  Rob Buis  <rbuis@rim.com>

        Reviewed by Nikolas Zimmermann.

        NULL deref when SVG elements have table styles
        https://bugs.webkit.org/show_bug.cgi?id=45561

        * svg/custom/display-table-caption-foreignObject-expected.txt: Added.
        * svg/custom/display-table-caption-foreignObject.svg: Added.
        * svg/custom/display-table-caption-inherit-foreignObject-expected.txt: Added.
        * svg/custom/display-table-caption-inherit-foreignObject.xhtml: Added.
        * svg/custom/display-table-caption-inherit-text-expected.txt: Added.
        * svg/custom/display-table-caption-inherit-text.xhtml: Added.
        * svg/custom/display-table-caption-text-expected.txt: Added.
        * svg/custom/display-table-caption-text.svg: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/custom/display-table-caption-foreignObject-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/display-table-caption-foreignObject.svg [new file with mode: 0644]
LayoutTests/svg/custom/display-table-caption-inherit-foreignObject-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/display-table-caption-inherit-foreignObject.xhtml [new file with mode: 0644]
LayoutTests/svg/custom/display-table-caption-inherit-text-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/display-table-caption-inherit-text.xhtml [new file with mode: 0644]
LayoutTests/svg/custom/display-table-caption-text-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/display-table-caption-text.svg [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSStyleSelector.cpp