summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/bindings/v8/BindingState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/v8/BindingState.cpp')
-rw-r--r--Source/WebCore/bindings/v8/BindingState.cpp29
1 files changed, 1 insertions, 28 deletions
diff --git a/Source/WebCore/bindings/v8/BindingState.cpp b/Source/WebCore/bindings/v8/BindingState.cpp
index c59bb8915..9a3d7081b 100644
--- a/Source/WebCore/bindings/v8/BindingState.cpp
+++ b/Source/WebCore/bindings/v8/BindingState.cpp
@@ -66,36 +66,9 @@ DOMWindow* firstDOMWindow(BindingState*)
return toDOMWindow(v8::Context::GetEntered());
}
-Frame* activeFrame(BindingState*)
-{
- v8::Handle<v8::Context> context = activeContext();
- if (context.IsEmpty())
- return 0;
- return toFrameIfNotDetached(context);
-}
-
-Frame* firstFrame(BindingState*)
-{
- v8::Handle<v8::Context> context = v8::Context::GetEntered();
- if (context.IsEmpty())
- return 0;
- return toFrameIfNotDetached(context);
-}
-
-Frame* currentFrame(BindingState*)
-{
- v8::Handle<v8::Context> context = v8::Context::GetCurrent();
- if (context.IsEmpty())
- return 0;
- return toFrameIfNotDetached(context);
-}
-
Document* currentDocument(BindingState*)
{
- DOMWindow* current = toDOMWindow(v8::Context::GetCurrent());
- if (!current)
- return 0;
- return current->document();
+ return toDOMWindow(v8::Context::GetCurrent())->document();
}
void printErrorMessageForFrame(Frame* frame, const String& message)