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

Unified Diff: Source/devtools/front_end/host/DOMExtension.js

Issue 675753002: [DevTools] Drop "ui" module from toolbox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 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/bindings/ResourceUtils.js ('k') | Source/devtools/front_end/host/ToolboxHost.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/host/DOMExtension.js
diff --git a/Source/devtools/front_end/ui/DOMExtension.js b/Source/devtools/front_end/host/DOMExtension.js
similarity index 97%
rename from Source/devtools/front_end/ui/DOMExtension.js
rename to Source/devtools/front_end/host/DOMExtension.js
index ff5133ca303321a15b6347fb26b83843aaad9f96..d22335c4777ef27c3f659ffc6382fc54088221e7 100644
--- a/Source/devtools/front_end/ui/DOMExtension.js
+++ b/Source/devtools/front_end/host/DOMExtension.js
@@ -277,24 +277,6 @@ Constraints.prototype.addHeight = function(value)
}
/**
- * @param {?Element=} containerElement
- * @return {!Size}
- */
-Element.prototype.measurePreferredSize = function(containerElement)
-{
- containerElement = containerElement || this.ownerDocument.body;
- containerElement.appendChild(this);
- var fakingComponentRoot = WebInspector.installComponentRootStyles(this);
- this.positionAt(0, 0);
- var result = new Size(this.offsetWidth, this.offsetHeight);
- this.positionAt(undefined, undefined);
- this.remove();
- if (fakingComponentRoot)
- WebInspector.uninstallComponentRootStyles(this);
- return result;
-}
-
-/**
* @param {!Event} event
* @return {boolean}
*/
« no previous file with comments | « Source/devtools/front_end/bindings/ResourceUtils.js ('k') | Source/devtools/front_end/host/ToolboxHost.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698