diff options
Diffstat (limited to 'WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp')
-rw-r--r-- | WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp b/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp index 25564ee..210e974 100644 --- a/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp +++ b/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp @@ -58,6 +58,7 @@ #include "V8Database.h" #include "V8DatabaseCallback.h" #include "V8GCForContextDispose.h" +#include "V8HiddenPropertyName.h" #include "V8HTMLAudioElementConstructor.h" #include "V8HTMLCollection.h" #include "V8HTMLImageElementConstructor.h" @@ -175,7 +176,7 @@ v8::Handle<v8::Value> V8DOMWindow::eventAccessorGetter(v8::Local<v8::String> nam if (context.IsEmpty()) return v8::Undefined(); - v8::Local<v8::String> eventSymbol = v8::String::NewSymbol("event"); + v8::Handle<v8::String> eventSymbol = V8HiddenPropertyName::event(); v8::Handle<v8::Value> jsEvent = context->Global()->GetHiddenValue(eventSymbol); if (jsEvent.IsEmpty()) return v8::Undefined(); @@ -196,7 +197,7 @@ void V8DOMWindow::eventAccessorSetter(v8::Local<v8::String> name, v8::Local<v8:: if (context.IsEmpty()) return; - v8::Local<v8::String> eventSymbol = v8::String::NewSymbol("event"); + v8::Handle<v8::String> eventSymbol = V8HiddenPropertyName::event(); context->Global()->SetHiddenValue(eventSymbol, value); } @@ -795,9 +796,9 @@ v8::Handle<v8::Value> V8DOMWindow::openDatabaseCallback(const v8::Arguments& arg if (args.Length() < 4) return throwError(SYNTAX_ERR); - EXCEPTION_BLOCK(String, name, toWebCoreString(args[0])); - EXCEPTION_BLOCK(String, version, toWebCoreString(args[1])); - EXCEPTION_BLOCK(String, displayName, toWebCoreString(args[2])); + TO_WEBCORE_STRING_EXCEPTION_BLOCK(name, args[0]); + TO_WEBCORE_STRING_EXCEPTION_BLOCK(version, args[1]); + TO_WEBCORE_STRING_EXCEPTION_BLOCK(displayName, args[2]); EXCEPTION_BLOCK(unsigned long, estimatedSize, args[3]->Uint32Value()); DOMWindow* imp = V8DOMWindow::toNative(args.Holder()); |