Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: Source/core/testing/Internals.cpp

Issue 513723003: Add pixel readback to page popup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 5ff5ec2095a3e0d4142be4b56259878f7939e096..210248d31cd52514ad5912bec6998e22bc9c0ccc 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -669,6 +669,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();

Powered by Google App Engine
This is Rietveld 408576698