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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 221283009: [DevTools] Pass inspected page bounds from frontend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test on mac Created 6 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
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index a7f5b0b50e66393f337fa0517e0d1c46a36017fc..b50fd999cff0582dc07c2c22a923cb37f611db70 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -2375,14 +2375,10 @@ void RenderWidgetHostViewMac::PauseForPendingResizeOrRepaintsAndDraw() {
if (!render_widget_host_ || render_widget_host_->is_hidden())
return;
- // Pausing for the overlay view prevents the underlay from receiving
- // frames. This may lead to large delays, causing overlaps. If both
- // overlay and underlay resize at the same time, let them both to have
- // some time waiting. See crbug.com/352020.
- if (underlay_view_ &&
- underlay_view_->render_widget_host_ &&
- !underlay_view_->render_widget_host_->
- CanPauseForPendingResizeOrRepaints())
+ // Pausing for the overlay/underlay view prevents the other one from receiving
+ // frames. This may lead to large delays, causing overlaps.
+ // See crbug.com/352020.
+ if (underlay_view_ || overlay_view_)
return;
// Ensure that all frames are acked before waiting for a frame to come in.
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698