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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/MediaQueryInspector.js

Issue 1546833002: [DevTools] Add rulers to Device Mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 11 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/devtools/front_end/emulation/MediaQueryInspector.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/MediaQueryInspector.js b/third_party/WebKit/Source/devtools/front_end/emulation/MediaQueryInspector.js
index 50786b4db535ad43308d61bd328421b50f97788a..e103e2dcda86646ac410f21599b010396d1b2b65 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/MediaQueryInspector.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/MediaQueryInspector.js
@@ -262,7 +262,6 @@ WebInspector.MediaQueryInspector.prototype = {
return;
var oldChildrenCount = this.contentElement.children.length;
- var scrollTop = this.contentElement.scrollTop;
this.contentElement.removeChildren();
var container = null;
@@ -276,7 +275,6 @@ WebInspector.MediaQueryInspector.prototype = {
bar.classList.toggle("media-inspector-marker-inactive", !marker.active);
container.appendChild(bar);
}
- this.contentElement.scrollTop = scrollTop;
},
/**

Powered by Google App Engine
This is Rietveld 408576698