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

Unified Diff: Source/devtools/front_end/ui/RootView.js

Issue 663083004: [DevTools] Remove remaining usages of global properties. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed review comments 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
« no previous file with comments | « Source/devtools/front_end/ui/Popover.js ('k') | Source/devtools/front_end/ui/ShortcutRegistry.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/RootView.js
diff --git a/Source/devtools/front_end/ui/RootView.js b/Source/devtools/front_end/ui/RootView.js
index 465c6d169a15b1d774e7ace25869e1e2469e36b8..01fcb96293aa1da8cd2928de89a5374480acb2db 100644
--- a/Source/devtools/front_end/ui/RootView.js
+++ b/Source/devtools/front_end/ui/RootView.js
@@ -5,6 +5,7 @@
/**
* @constructor
* @extends {WebInspector.VBox}
+ * @suppressGlobalPropertiesCheck
*/
WebInspector.RootView = function()
{
@@ -12,10 +13,15 @@ WebInspector.RootView = function()
this.markAsRoot();
this.element.classList.add("root-view");
this.element.setAttribute("spellcheck", false);
+ // This view is not designed to change owner document.
window.addEventListener("resize", this.doResize.bind(this), false);
}
WebInspector.RootView.prototype = {
+ /**
+ * @public // FIXME: this is a workaround for validator bug (http://crbug.com/425506).
+ * @suppressGlobalPropertiesCheck
+ */
attachToBody: function()
{
this.doResize();
« no previous file with comments | « Source/devtools/front_end/ui/Popover.js ('k') | Source/devtools/front_end/ui/ShortcutRegistry.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698