2006-04-09 Rob Buis <buis@kde.org>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 9 Apr 2006 21:55:41 +0000 (21:55 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 9 Apr 2006 21:55:41 +0000 (21:55 +0000)
commit04e22e8b1a7fe42f6a70eb8f4d3d5a3c028110f0
tree027d4282aa04fb397d8ce645f41e8cc7caa3dc05
parent07ad3ee0627252abfa2670f100cfd88af07e6915
2006-04-09  Rob Buis  <buis@kde.org>

        Reviewed by darin.  Landed by eseidel.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6930:
        % width/height on nested <svg> tags do not work

        Set the context correctly for inner <svg>, so calculation of
        width/height for inner <svg> elements is done against the
        viewport element.

        Test: svg/custom/inner-percent.svg

        * ksvg2/svg/SVGSVGElement.cpp:
        (WebCore::SVGSVGElement::width):
        (WebCore::SVGSVGElement::height):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/custom/inner-percent-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/inner-percent-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/inner-percent-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/inner-percent.svg [new file with mode: 0644]
WebCore/ChangeLog
WebCore/ksvg2/svg/SVGSVGElement.cpp