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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js

Issue 2604883002: DevTools: namespace globals (Closed)
Patch Set: address CL feedback Created 4 years 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: third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
index 767b3c3035ee548c2a996e9d83240810654b9634..4479140938e0e8a5b038c86223e0fbfae6811a2a 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ComputedStyleWidget.js
@@ -57,7 +57,7 @@ Elements.ComputedStyleWidget = class extends UI.ThrottledWidget {
toolbar.appendToolbarItem(new UI.ToolbarCheckbox(
Common.UIString('Show all'), undefined, this._showInheritedComputedStylePropertiesSetting));
- this._propertiesOutline = new TreeOutlineInShadow();
+ this._propertiesOutline = new UI.TreeOutlineInShadow();
this._propertiesOutline.hideOverflow();
this._propertiesOutline.registerRequiredCSS('elements/computedStyleSidebarPane.css');
this._propertiesOutline.element.classList.add('monospace', 'computed-properties');
@@ -184,7 +184,7 @@ Elements.ComputedStyleWidget = class extends UI.ThrottledWidget {
semicolon.textContent = ';';
propertyValueElement.appendChild(semicolon);
- var treeElement = new TreeElement();
+ var treeElement = new UI.TreeElement();
treeElement.selectable = false;
treeElement.title = propertyElement;
treeElement[Elements.ComputedStyleWidget._propertySymbol] = {name: propertyName, value: propertyValue};
@@ -222,7 +222,7 @@ Elements.ComputedStyleWidget = class extends UI.ThrottledWidget {
}
/**
- * @param {!TreeElement} treeElement
+ * @param {!UI.TreeElement} treeElement
* @param {!Event} event
*/
function handleClick(treeElement, event) {
@@ -247,7 +247,7 @@ Elements.ComputedStyleWidget = class extends UI.ThrottledWidget {
* @param {!SDK.CSSModel} cssModel
* @param {!SDK.CSSMatchedStyles} matchedStyles
* @param {!SDK.DOMNode} node
- * @param {!TreeElement} rootTreeElement
+ * @param {!UI.TreeElement} rootTreeElement
* @param {!Array<!SDK.CSSProperty>} tracedProperties
* @return {!SDK.CSSProperty}
*/
@@ -284,7 +284,7 @@ Elements.ComputedStyleWidget = class extends UI.ThrottledWidget {
selectorElement.textContent = rule ? rule.selectorText() : 'element.style';
selectorElement.title = selectorElement.textContent;
- var traceTreeElement = new TreeElement();
+ var traceTreeElement = new UI.TreeElement();
traceTreeElement.title = trace;
traceTreeElement.selectable = false;
rootTreeElement.appendChild(traceTreeElement);

Powered by Google App Engine
This is Rietveld 408576698