diff options
Diffstat (limited to 'WebCore/bindings/v8/custom/V8HTMLFrameElementCustom.cpp')
-rw-r--r-- | WebCore/bindings/v8/custom/V8HTMLFrameElementCustom.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/WebCore/bindings/v8/custom/V8HTMLFrameElementCustom.cpp b/WebCore/bindings/v8/custom/V8HTMLFrameElementCustom.cpp index 2f55758..fd831bf 100644 --- a/WebCore/bindings/v8/custom/V8HTMLFrameElementCustom.cpp +++ b/WebCore/bindings/v8/custom/V8HTMLFrameElementCustom.cpp @@ -29,10 +29,12 @@ */ #include "config.h" +#include "V8HTMLFrameElement.h" + #include "HTMLFrameElement.h" #include "HTMLNames.h" - #include "V8Binding.h" +#include "V8BindingState.h" #include "V8CustomBinding.h" #include "V8Proxy.h" @@ -40,23 +42,23 @@ namespace WebCore { using namespace HTMLNames; -ACCESSOR_SETTER(HTMLFrameElementSrc) +void V8HTMLFrameElement::srcAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { - HTMLFrameElement* frame = V8DOMWrapper::convertDOMWrapperToNode<HTMLFrameElement>(info.Holder()); + HTMLFrameElement* frame = V8HTMLFrameElement::toNative(info.Holder()); String srcValue = toWebCoreStringWithNullCheck(value); - if (!allowSettingFrameSrcToJavascriptUrl(frame, srcValue)) + if (!V8BindingSecurity::allowSettingFrameSrcToJavascriptUrl(V8BindingState::Only(), frame, srcValue)) return; frame->setAttribute(srcAttr, srcValue); } -ACCESSOR_SETTER(HTMLFrameElementLocation) +void V8HTMLFrameElement::locationAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) { - HTMLFrameElement* frame = V8DOMWrapper::convertDOMWrapperToNode<HTMLFrameElement>(info.Holder()); + HTMLFrameElement* frame = V8HTMLFrameElement::toNative(info.Holder()); String locationValue = toWebCoreStringWithNullCheck(value); - if (!allowSettingFrameSrcToJavascriptUrl(frame, locationValue)) + if (!V8BindingSecurity::allowSettingFrameSrcToJavascriptUrl(V8BindingState::Only(), frame, locationValue)) return; frame->setLocation(locationValue); |