2010-09-26 Adam Barth <abarth@webkit.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 26 Sep 2010 22:22:59 +0000 (22:22 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 26 Sep 2010 22:22:59 +0000 (22:22 +0000)
commit4087d793b9d88f3c64556a9766aa0a398f59e9bb
tree5b172d73f0941bd949c6b0dd159f561ffa4f7af8
parentcbf304136c40d7101e9a7ec3cd3063d1c39dd2d2
2010-09-26  Adam Barth  <abarth@webkit.org>

        Reviewed by Dimitri Glazkov.

        Implement location.origin and HTMLAnchorElement.origin
        https://bugs.webkit.org/show_bug.cgi?id=46558

        Test the origin attribute of Location and HTMLAnchorElement.

        * fast/dom/anchor-origin-expected.txt: Added.
        * fast/dom/anchor-origin.html: Added.
        * http/tests/misc/location-origin-expected.txt: Added.
        * http/tests/misc/location-origin.html: Added.
2010-09-26  Adam Barth  <abarth@webkit.org>

        Reviewed by Dimitri Glazkov.

        Implement location.origin and HTMLAnchorElement.origin
        https://bugs.webkit.org/show_bug.cgi?id=46558

        These attributes are part of my proposed URL API:
        https://docs.google.com/document/edit?id=1r_VTFKApVOaNIkocrg0z-t7lZgzisTuGTXkdzAk4gLU&hl=en

        Hixie thought we should implement as much of this API as makes sense on
        Location and HTMLAnchorElement as well.  I'm starting with the origin
        attribute, because that seems like the biggest bang for the buck.

        Tests: fast/dom/anchor-origin.html
               http/tests/misc/location-origin.html

        * WebCore.xcodeproj/project.pbxproj:
        * html/HTMLAnchorElement.cpp:
        (WebCore::HTMLAnchorElement::origin):
        * html/HTMLAnchorElement.h:
        * html/HTMLAnchorElement.idl:
        * page/Location.cpp:
        (WebCore::Location::origin):
        * page/Location.h:
        * page/Location.idl:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68354 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/window-appendages-cleared-expected.txt
LayoutTests/fast/dom/Window/window-properties-expected.txt
LayoutTests/fast/dom/anchor-origin-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/anchor-origin.html [new file with mode: 0644]
LayoutTests/fast/dom/prototype-inheritance-2-expected.txt
LayoutTests/http/tests/misc/location-origin-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/misc/location-origin.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLAnchorElement.cpp
WebCore/html/HTMLAnchorElement.h
WebCore/html/HTMLAnchorElement.idl
WebCore/page/Location.cpp
WebCore/page/Location.h
WebCore/page/Location.idl