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

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

Issue 660463002: DevTools: follow up to r183724, mark all floating components as roots. (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
« no previous file with comments | « Source/devtools/front_end/ui/RootView.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/View.js
diff --git a/Source/devtools/front_end/ui/View.js b/Source/devtools/front_end/ui/View.js
index 1a3cf6f66585ff8d6b411b15a7a6eb39bb56b564..410e5ec159fb3c3972fd971b3a05fbc51456584e 100644
--- a/Source/devtools/front_end/ui/View.js
+++ b/Source/devtools/front_end/ui/View.js
@@ -68,6 +68,7 @@ WebInspector.View.createStyleElement = function(cssFile)
WebInspector.View.prototype = {
markAsRoot: function()
{
+ this.element.classList.add("component-root");
WebInspector.View.__assert(!this.element.parentElement, "Attempt to mark as root attached node");
this._isRoot = true;
},
« no previous file with comments | « Source/devtools/front_end/ui/RootView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698