Index: Source/bindings/v8/BindingSecurity.cpp |
diff --git a/Source/bindings/v8/BindingSecurity.cpp b/Source/bindings/v8/BindingSecurity.cpp |
index fa9af5376383b31bd287c529d9cc0918a4fbe69f..618df528894944fd2cbe3c57d8d8feb9f8831186 100644 |
--- a/Source/bindings/v8/BindingSecurity.cpp |
+++ b/Source/bindings/v8/BindingSecurity.cpp |
@@ -70,17 +70,12 @@ bool BindingSecurity::shouldAllowAccessToFrame(BindingState* state, Frame* targe |
return target && canAccessDocument(state, target->document(), reportingOption); |
} |
-bool BindingSecurity::shouldAllowAccessToNode(BindingState* state, Node* target) |
-{ |
- return target && canAccessDocument(state, target->document()); |
-} |
- |
bool BindingSecurity::shouldAllowAccessToNode(BindingState* state, const Handle<Node>& node) |
{ |
- return shouldAllowAccessToNode(state, node.raw()); |
+ return node && canAccessDocument(state, node->document()); |
} |
-bool BindingSecurity::allowSettingFrameSrcToJavascriptUrl(BindingState* state, HTMLFrameElementBase* frame, const String& value) |
+bool BindingSecurity::allowSettingFrameSrcToJavascriptUrl(BindingState* state, const Handle<HTMLFrameElementBase>& frame, const String& value) |
{ |
return !protocolIsJavaScript(stripLeadingAndTrailingHTMLSpaces(value)) || canAccessDocument(state, frame->contentDocument()); |
} |