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

Unified Diff: Source/devtools/front_end/devices/DevicesView.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/devices/DevicesView.js
diff --git a/Source/devtools/front_end/devices/DevicesView.js b/Source/devtools/front_end/devices/DevicesView.js
index 6e731a3f22d41ae4f4fa630b818622cf5d33ddb4..f1b5364abf791b73a3f5774b04f61f466b2ced08 100644
--- a/Source/devtools/front_end/devices/DevicesView.js
+++ b/Source/devtools/front_end/devices/DevicesView.js
@@ -147,7 +147,7 @@ WebInspector.DevicesView.prototype = {
var incompatibleVersion = browser.hasOwnProperty("compatibleVersion") && !browser.compatibleVersion;
var browserSection = deviceSection.querySelector("#" + sanitizeForId(browser.id));
if (!browserSection) {
- browserSection = document.createElementWithClass("div", "browser");
+ browserSection = createElementWithClass("div", "browser");
browserSection.id = sanitizeForId(browser.id);
insertChildSortedById(deviceSection, browserSection);
« no previous file with comments | « Source/devtools/front_end/console/ConsoleViewMessage.js ('k') | Source/devtools/front_end/documentation/DocumentationView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698