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

Unified Diff: Source/devtools/front_end/toolbox/MediaQueryInspector.js

Issue 662793002: [DevTools] Replace usages of document with custom functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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: Source/devtools/front_end/toolbox/MediaQueryInspector.js
diff --git a/Source/devtools/front_end/toolbox/MediaQueryInspector.js b/Source/devtools/front_end/toolbox/MediaQueryInspector.js
index f40bcce14aeb21c8e6ecbc0f936d0b150843cfa2..226b8ea111ffbc11aab2f6cfb9b7480d0f62a527 100644
--- a/Source/devtools/front_end/toolbox/MediaQueryInspector.js
+++ b/Source/devtools/front_end/toolbox/MediaQueryInspector.js
@@ -321,7 +321,7 @@ WebInspector.MediaQueryInspector.prototype = {
"media-inspector-marker-min-max-width",
"media-inspector-marker-min-width"
];
- var markerElement = document.createElementWithClass("div", "media-inspector-marker");
+ var markerElement = createElementWithClass("div", "media-inspector-marker");
var leftPixelValue = minWidthValue ? (minWidthValue - this._offset) / zoomFactor : 0;
markerElement.style.left = leftPixelValue + "px";
markerElement.classList.add(styleClassPerSection[model.section()]);
« no previous file with comments | « Source/devtools/front_end/timeline/TransformController.js ('k') | Source/devtools/front_end/toolbox/OverridesUI.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698