Index: Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp |
diff --git a/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp b/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp |
index 93eb1f6bcc9d61e071a0f8a8d39fa1fb2ad6c603..1b9297c612376d6e76be45a94b9a2e77e2567eb0 100644 |
--- a/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp |
+++ b/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp |
@@ -159,12 +159,12 @@ void V8DevToolsHost::showContextMenuAtPointMethodCustom(const v8::FunctionCallba |
DOMWindow* window = V8Window::toImpl(windowWrapper); |
document = window ? toLocalDOMWindow(window)->document() : nullptr; |
} |
- if (!document || !document->page()) |
+ if (!document || !document->frame()) |
return; |
DevToolsHost* devtoolsHost = V8DevToolsHost::toImpl(info.Holder()); |
Vector<ContextMenuItem> items = menu.items(); |
- devtoolsHost->showContextMenu(document->page(), static_cast<float>(x->NumberValue()), static_cast<float>(y->NumberValue()), items); |
+ devtoolsHost->showContextMenu(document->frame(), static_cast<float>(x->NumberValue()), static_cast<float>(y->NumberValue()), items); |
} |
} // namespace blink |