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

Unified Diff: chrome/browser/devtools/devtools_window.cc

Issue 2861053003: DevTools: [lighthouse] Implement performance metrics filmstrip (Closed)
Patch Set: Created 3 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: chrome/browser/devtools/devtools_window.cc
diff --git a/chrome/browser/devtools/devtools_window.cc b/chrome/browser/devtools/devtools_window.cc
index 94d7954867a56e1507650596e98f016cab6262c5..931e9622f3600e4fc96282ee7e8703ac9de2dd08 100644
--- a/chrome/browser/devtools/devtools_window.cc
+++ b/chrome/browser/devtools/devtools_window.cc
@@ -1176,9 +1176,9 @@ void DevToolsWindow::Inspect(scoped_refptr<content::DevToolsAgentHost> host) {
DevToolsWindow::OpenDevToolsWindow(host, profile_);
}
-void DevToolsWindow::SetInspectedPageBounds(const gfx::Rect& rect) {
+void DevToolsWindow::SetInspectedPageBounds(const gfx::Rect& rect, bool force) {
DevToolsContentsResizingStrategy strategy(rect);
- if (contents_resizing_strategy_.Equals(strategy))
+ if (!force && contents_resizing_strategy_.Equals(strategy))
return;
contents_resizing_strategy_.CopyFrom(strategy);

Powered by Google App Engine
This is Rietveld 408576698