2011-06-25 Rob Buis <rbuis@rim.com>
authorrwlbuis@webkit.org <rwlbuis@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Jun 2011 18:41:39 +0000 (18:41 +0000)
committerrwlbuis@webkit.org <rwlbuis@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Jun 2011 18:41:39 +0000 (18:41 +0000)
commit07e131ad6bd913a024da2cbd16f0ccd0d4875095
treeb6cb3f2d0c23ad2928b79517615e5cb125664a16
parentc5edfaa1a663ad5db9884ff29593dae312ea72a0
2011-06-25  Rob Buis  <rbuis@rim.com>

        Reviewed by Nikolas Zimmermann.

        SVG1.1SE test linking-uri-01-b.svg fails
        https://bugs.webkit.org/show_bug.cgi?id=63322

        Allow navigating to internal <view> targets. When choosing Back ensure
        the <svg> current view is initialized correctly.

        Tests: svg/W3C-SVG-1.1-SE/linking-uri-01-b.svg
               svg/custom/linking-uri-01-b.svg

        * page/FrameView.cpp: Delegate to setupInitialView.
        (WebCore::FrameView::scrollToAnchor):
        * svg/SVGAElement.cpp: Allow navigating to internal <view> targets.
        (WebCore::SVGAElement::defaultEventHandler):
        * svg/SVGSVGElement.cpp:
        (WebCore::SVGSVGElement::setupInitialView): Initialize current view depending on fragment identifier.
        (WebCore::SVGSVGElement::inheritViewAttributes):
        * svg/SVGSVGElement.h:
2011-06-25  Rob Buis  <rbuis@rim.com>

        Reviewed by Nikolas Zimmermann.

        SVG1.1SE test linking-uri-01-b.svg fails
        https://bugs.webkit.org/show_bug.cgi?id=63322

        Add a test for navigating to an inner <view> anchor. The changed test results
        are improvements.

        * platform/mac/svg/W3C-SVG-1.1-SE/linking-uri-01-b-expected.png: Added.
        * platform/mac/svg/W3C-SVG-1.1-SE/linking-uri-01-b-expected.txt: Added.
        * platform/mac/svg/custom/linking-a-03-b-all-expected.png:
        * platform/mac/svg/custom/linking-a-03-b-all-expected.txt:
        * platform/mac/svg/custom/linking-a-03-b-transform-expected.png:
        * platform/mac/svg/custom/linking-a-03-b-transform-expected.txt:
        * platform/mac/svg/custom/linking-a-03-b-viewBox-transform-expected.png:
        * platform/mac/svg/custom/linking-a-03-b-viewBox-transform-expected.txt:
        * platform/mac/svg/custom/linking-uri-01-b-expected.png: Added.
        * platform/mac/svg/custom/linking-uri-01-b-expected.txt: Added.
        * svg/W3C-SVG-1.1-SE/linking-uri-01-b.svg: Added.
        * svg/custom/linking-uri-01-b.svg: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@89745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
18 files changed:
LayoutTests/ChangeLog
LayoutTests/platform/mac/svg/W3C-SVG-1.1-SE/linking-uri-01-b-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/svg/W3C-SVG-1.1-SE/linking-uri-01-b-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/svg/custom/linking-a-03-b-all-expected.png
LayoutTests/platform/mac/svg/custom/linking-a-03-b-all-expected.txt
LayoutTests/platform/mac/svg/custom/linking-a-03-b-transform-expected.png
LayoutTests/platform/mac/svg/custom/linking-a-03-b-transform-expected.txt
LayoutTests/platform/mac/svg/custom/linking-a-03-b-viewBox-transform-expected.png
LayoutTests/platform/mac/svg/custom/linking-a-03-b-viewBox-transform-expected.txt
LayoutTests/platform/mac/svg/custom/linking-uri-01-b-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/svg/custom/linking-uri-01-b-expected.txt [new file with mode: 0644]
LayoutTests/svg/W3C-SVG-1.1-SE/linking-uri-01-b.svg [new file with mode: 0644]
LayoutTests/svg/custom/linking-uri-01-b.svg [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/FrameView.cpp
Source/WebCore/svg/SVGAElement.cpp
Source/WebCore/svg/SVGSVGElement.cpp
Source/WebCore/svg/SVGSVGElement.h