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

Unified Diff: third_party/WebKit/Source/WebKit/chromium/src/WebViewImpl.cpp

Issue 7538006: Pepper and WebKit API change to support a plugin knowing if a scrollbar is an overlay one. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Make scrollbars appear when chrome becomes active Created 9 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: third_party/WebKit/Source/WebKit/chromium/src/WebViewImpl.cpp
===================================================================
--- third_party/WebKit/Source/WebKit/chromium/src/WebViewImpl.cpp (revision 92488)
+++ third_party/WebKit/Source/WebKit/chromium/src/WebViewImpl.cpp (working copy)
@@ -1000,6 +1000,11 @@
{
if (mainFrameImpl() && mainFrameImpl()->frameView())
mainFrameImpl()->frameView()->willStartLiveResize();
+
+ Frame* frame = mainFrameImpl()->frame();
+ WebPluginContainerImpl* pluginContainer = WebFrameImpl::pluginContainerFromFrame(frame);
+ if (pluginContainer)
+ pluginContainer->willStartLiveResize();
}
void WebViewImpl::resize(const WebSize& newSize)
@@ -1029,6 +1034,11 @@
{
if (mainFrameImpl() && mainFrameImpl()->frameView())
mainFrameImpl()->frameView()->willEndLiveResize();
+
+ Frame* frame = mainFrameImpl()->frame();
+ WebPluginContainerImpl* pluginContainer = WebFrameImpl::pluginContainerFromFrame(frame);
+ if (pluginContainer)
+ pluginContainer->willEndLiveResize();
}
void WebViewImpl::animate(double frameBeginTime)

Powered by Google App Engine
This is Rietveld 408576698