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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 1958903005: Fix positioning of Browser Plugins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix positioning problem and update test Created 4 years, 7 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: content/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index 377e64749d7c044c5273e9a6960696674e3543ec..006b7a3d841f1663203af5043903076ffc151655 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -382,7 +382,7 @@ void BrowserPlugin::updateGeometry(const WebRect& plugin_rect_in_viewport,
if (!attached())
return;
- if (old_view_rect.size() == view_rect_.size()) {
Stephen Chennney 2016/05/10 18:40:23 This very odd condition is a remnant of https://ch
lazyboy 2016/05/10 20:51:58 Which change was that? which are wasteful. The in
+ if (old_view_rect != view_rect_) {
// Let the browser know about the updated view rect.
BrowserPluginManager::Get()->Send(new BrowserPluginHostMsg_UpdateGeometry(
browser_plugin_instance_id_, view_rect_));

Powered by Google App Engine
This is Rietveld 408576698