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

Unified Diff: webkit/glue/webplugin_impl.cc

Issue 174513: Add isVisible parameter to WebPlugin::updateGeometry.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « webkit/glue/webplugin_impl.h ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webplugin_impl.cc
===================================================================
--- webkit/glue/webplugin_impl.cc (revision 24434)
+++ webkit/glue/webplugin_impl.cc (working copy)
@@ -285,7 +285,7 @@
void WebPluginImpl::updateGeometry(
const WebRect& window_rect, const WebRect& clip_rect,
- const WebVector<WebRect>& cutout_rects) {
+ const WebVector<WebRect>& cutout_rects, bool is_visible) {
if (window_) {
WebViewDelegate* view_delegate = GetWebViewDelegate();
if (view_delegate) {
@@ -299,7 +299,7 @@
for (size_t i = 0; i < cutout_rects.size(); ++i)
move.cutout_rects.push_back(cutout_rects[i]);
move.rects_valid = true;
- move.visible = true; // Assume visible or else we wouldn't be here.
+ move.visible = is_visible;
view_delegate->DidMovePlugin(move);
}
« no previous file with comments | « webkit/glue/webplugin_impl.h ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698