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

Unified Diff: Source/devtools/front_end/timeline/PaintProfilerView.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/timeline/PaintProfilerView.js
diff --git a/Source/devtools/front_end/timeline/PaintProfilerView.js b/Source/devtools/front_end/timeline/PaintProfilerView.js
index c6893490530f7c603d793e0b9c6c0507df1581a4..57b4cbd2435d159ead84d6218d1ae4a1e12cd42e 100644
--- a/Source/devtools/front_end/timeline/PaintProfilerView.js
+++ b/Source/devtools/front_end/timeline/PaintProfilerView.js
@@ -406,7 +406,7 @@ WebInspector.LogTreeElement.prototype = {
_update: function()
{
var logItem = this.representedObject;
- var title = document.createDocumentFragment();
+ var title = createDocumentFragment();
title.createChild("div", "selection");
title.createTextChild(logItem.method + "(" + this._paramsToString(logItem.params) + ")");
this.title = title;
@@ -474,7 +474,7 @@ WebInspector.LogPropertyTreeElement.prototype = {
onattach: function()
{
var property = this.representedObject;
- var title = document.createDocumentFragment();
+ var title = createDocumentFragment();
title.createChild("div", "selection");
var nameElement = title.createChild("span", "name");
nameElement.textContent = property.name;
« no previous file with comments | « Source/devtools/front_end/timeline/CountersGraph.js ('k') | Source/devtools/front_end/timeline/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698