2010-09-09 Dominic Cooney <dominicc@google.com>
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Sep 2010 05:10:22 +0000 (05:10 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Sep 2010 05:10:22 +0000 (05:10 +0000)
commitce962d57eab9f91c87f59607cc4a3c33eee0c48f
tree67af2cc0218ac4b593059a81bbd03bc6cda13e99
parentb2b740af0160921bd6c0020f5c27884d37733ccf
2010-09-09  Dominic Cooney  <dominicc@google.com>

        Reviewed by Kent Tamura.

        Moves location.replace bindings logic into bindings/generic and
        instantiates it for JSC and V8.

        https://bugs.webkit.org/show_bug.cgi?id=44891

        Covered by existing location.replace tests.

        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.vcproj/WebCoreCommon.vsprops:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/generic/BindingDOMWindow.h:
        * bindings/generic/BindingFrame.h: Added.
        (WebCore::::navigateIfAllowed):
        * bindings/generic/BindingLocation.h: Added.
        (WebCore::::replace):
        * bindings/generic/GenericBinding.h:
        (WebCore::completeURL):
        * bindings/js/JSBinding.h: Added.
        * bindings/js/JSBindingsAllInOne.cpp:
        * bindings/js/JSDOMBinding.cpp:
        (WebCore::shouldAllowNavigation):
        (WebCore::toLexicalFrame):
        (WebCore::toDynamicFrame):
        (WebCore::processingUserGesture):
        (WebCore::completeURL):
        * bindings/js/JSLocationCustom.cpp:
        (WebCore::navigateIfAllowed):
        (WebCore::JSLocation::replace):
        * bindings/js/specialization/JSBindingState.cpp: Added.
        (WebCore::::getActiveFrame):
        (WebCore::::getFirstFrame):
        (WebCore::::processingUserGesture):
        (WebCore::::allowsAccessFromFrame):
        * bindings/js/specialization/JSBindingState.h: Added.
        * bindings/v8/V8Binding.h:
        * bindings/v8/V8Utilities.cpp:
        (WebCore::completeURL):
        (WebCore::navigateIfAllowed):
        * bindings/v8/custom/V8LocationCustom.cpp:
        (WebCore::V8Location::replaceCallback):
        * bindings/v8/specialization/V8BindingState.cpp:
        (WebCore::::allowsAccessFromFrame):
        * bindings/v8/specialization/V8BindingState.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@67167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
22 files changed:
WebCore/ChangeLog
WebCore/GNUmakefile.am
WebCore/WebCore.gypi
WebCore/WebCore.pro
WebCore/WebCore.vcproj/WebCore.vcproj
WebCore/WebCore.vcproj/WebCoreCommon.vsprops
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/bindings/generic/BindingDOMWindow.h
WebCore/bindings/generic/BindingFrame.h [new file with mode: 0644]
WebCore/bindings/generic/BindingLocation.h [new file with mode: 0644]
WebCore/bindings/generic/GenericBinding.h
WebCore/bindings/js/JSBinding.h [new file with mode: 0644]
WebCore/bindings/js/JSBindingsAllInOne.cpp
WebCore/bindings/js/JSDOMBinding.cpp
WebCore/bindings/js/JSLocationCustom.cpp
WebCore/bindings/js/specialization/JSBindingState.cpp [new file with mode: 0644]
WebCore/bindings/js/specialization/JSBindingState.h [new file with mode: 0644]
WebCore/bindings/v8/V8Binding.h
WebCore/bindings/v8/V8Utilities.cpp
WebCore/bindings/v8/custom/V8LocationCustom.cpp
WebCore/bindings/v8/specialization/V8BindingState.cpp
WebCore/bindings/v8/specialization/V8BindingState.h