diff options
author | Ben Murdoch <benm@google.com> | 2011-05-05 14:36:32 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-05-10 15:38:30 +0100 |
commit | f05b935882198ccf7d81675736e3aeb089c5113a (patch) | |
tree | 4ea0ca838d9ef1b15cf17ddb3928efb427c7e5a1 /WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm | |
parent | 60fbdcc62bced8db2cb1fd233cc4d1e4ea17db1b (diff) | |
download | external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.zip external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.tar.gz external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.tar.bz2 |
Merge WebKit at r74534: Initial merge by git.
Change-Id: I6ccd1154fa1b19c2ec2a66878eb675738735f1eb
Diffstat (limited to 'WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm')
-rw-r--r-- | WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm | 20 |
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) |