2011-02-05 Nate Chapin <japhet@chromium.org>
[WebKit.git] / Source / WebCore / bindings / v8 / custom / V8NotificationCenterCustom.cpp
index f1357bd3107698006d26eb793b160bb4bae4ea5c..c94afd90b7c6fcc15d2fca3eaf33885b0a996a56 100644 (file)
@@ -81,7 +81,7 @@ v8::Handle<v8::Value> V8NotificationCenter::requestPermissionCallback(const v8::
 {
     INC_STATS(L"DOM.NotificationCenter.RequestPermission()");
     NotificationCenter* notificationCenter = V8NotificationCenter::toNative(args.Holder());
-    ScriptExecutionContext* context = notificationCenter->context();
+    ScriptExecutionContext* context = notificationCenter->scriptExecutionContext();
 
     // Make sure that script execution context is valid.
     if (!context)