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

Unified Diff: Source/devtools/front_end/screencast/ScreencastView.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/screencast/ScreencastView.js
diff --git a/Source/devtools/front_end/screencast/ScreencastView.js b/Source/devtools/front_end/screencast/ScreencastView.js
index 461d39f0b7ea3bc11e5ff87be4f4c486190328b6..d8a8010e27da43b29775a0f5b63577b8bf5e469b 100644
--- a/Source/devtools/front_end/screencast/ScreencastView.js
+++ b/Source/devtools/front_end/screencast/ScreencastView.js
@@ -681,7 +681,7 @@ WebInspector.ScreencastView.prototype = {
*/
_createCheckerboardPattern: function(context)
{
- var pattern = /** @type {!HTMLCanvasElement} */(document.createElement("canvas"));
+ var pattern = /** @type {!HTMLCanvasElement} */(createElement("canvas"));
const size = 32;
pattern.width = size * 2;
pattern.height = size * 2;
« no previous file with comments | « Source/devtools/front_end/resources/ResourcesPanel.js ('k') | Source/devtools/front_end/settings/EditFileSystemDialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698