summaryrefslogtreecommitdiffstats
path: root/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm')
-rw-r--r--WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm20
1 files changed, 19 insertions, 1 deletions
diff --git a/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm b/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
index 5968084..c8285dc 100644
--- a/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
+++ b/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
@@ -1568,7 +1568,25 @@ public:
else if (event->type() == eventNames().mouseoutEvent)
[(WebBaseNetscapePluginView *)platformWidget() handleMouseExited:currentNSEvent];
}
-
+
+private:
+ virtual void notifyWidget(WidgetNotification notification)
+ {
+ switch (notification) {
+ case WillPaintFlattened: {
+ BEGIN_BLOCK_OBJC_EXCEPTIONS;
+ [(WebBaseNetscapePluginView *)platformWidget() cacheSnapshot];
+ END_BLOCK_OBJC_EXCEPTIONS;
+ break;
+ }
+ case DidPaintFlattened: {
+ BEGIN_BLOCK_OBJC_EXCEPTIONS;
+ [(WebBaseNetscapePluginView *)platformWidget() clearCachedSnapshot];
+ END_BLOCK_OBJC_EXCEPTIONS;
+ break;
+ }
+ }
+ }
};
#if USE(PLUGIN_HOST_PROCESS)