| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index 0c9db5419f82213d2651f4e677803d78624dac01..22dc6e1e26760ecbc6489af3150293fa4a7b9046 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -682,6 +682,20 @@ PassRefPtrWillBeRawPtr<PagePopupController> Internals::pagePopupController()
|
| return s_pagePopupDriver ? s_pagePopupDriver->pagePopupController() : 0;
|
| }
|
|
|
| +LocalDOMWindow* Internals::pagePopupWindow() const
|
| +{
|
| + Document* document = contextDocument();
|
| + if (!document)
|
| + return nullptr;
|
| + Page* page = document->page();
|
| + if (!page)
|
| + return nullptr;
|
| + PagePopupDriver* pagePopupDriver = page->chrome().client().pagePopupDriver();
|
| + if (!pagePopupDriver)
|
| + return nullptr;
|
| + return pagePopupDriver->pagePopupWindow();
|
| +}
|
| +
|
| PassRefPtrWillBeRawPtr<ClientRect> Internals::absoluteCaretBounds(ExceptionState& exceptionState)
|
| {
|
| Document* document = contextDocument();
|
|
|