Index: Source/web/WebPagePopupImpl.cpp |
diff --git a/Source/web/WebPagePopupImpl.cpp b/Source/web/WebPagePopupImpl.cpp |
index a199ba4258e31045086305614abb9208082cd6cc..74673d051453d7646f91c2668a5405652681d82a 100644 |
--- a/Source/web/WebPagePopupImpl.cpp |
+++ b/Source/web/WebPagePopupImpl.cpp |
@@ -44,6 +44,7 @@ |
#include "core/page/Page.h" |
#include "core/page/PagePopupClient.h" |
#include "platform/TraceEvent.h" |
+#include "public/platform/WebCompositeAndReadbackAsyncCallback.h" |
#include "public/platform/WebCursorInfo.h" |
#include "public/web/WebAXObject.h" |
#include "public/web/WebFrameClient.h" |
@@ -424,6 +425,17 @@ void WebPagePopupImpl::closePopup() |
m_popupClient->didClosePopup(); |
} |
+void WebPagePopupImpl::compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* callback) |
+{ |
+ ASSERT(isAcceleratedCompositingActive()); |
+ m_layerTreeView->compositeAndReadbackAsync(callback); |
+} |
+ |
+WebPoint WebPagePopupImpl::screenPosition() |
+{ |
+ return WebPoint(m_windowRectInScreen.x, m_windowRectInScreen.y); |
+} |
+ |
// WebPagePopup ---------------------------------------------------------------- |
WebPagePopup* WebPagePopup::create(WebWidgetClient* client) |