| Index: Source/devtools/front_end/platform/DOMExtension.js
|
| diff --git a/Source/devtools/front_end/host/DOMExtension.js b/Source/devtools/front_end/platform/DOMExtension.js
|
| similarity index 90%
|
| rename from Source/devtools/front_end/host/DOMExtension.js
|
| rename to Source/devtools/front_end/platform/DOMExtension.js
|
| index d22335c4777ef27c3f659ffc6382fc54088221e7..d16df0767c6d9fc5e6d1bbfbc617663cf16e06e4 100644
|
| --- a/Source/devtools/front_end/host/DOMExtension.js
|
| +++ b/Source/devtools/front_end/platform/DOMExtension.js
|
| @@ -203,80 +203,6 @@ function removeSubsequentNodes(fromNode, toNode)
|
| }
|
|
|
| /**
|
| - * @constructor
|
| - * @param {!Size} minimum
|
| - * @param {?Size=} preferred
|
| - */
|
| -function Constraints(minimum, preferred)
|
| -{
|
| - /**
|
| - * @type {!Size}
|
| - */
|
| - this.minimum = minimum;
|
| -
|
| - /**
|
| - * @type {!Size}
|
| - */
|
| - this.preferred = preferred || minimum;
|
| -
|
| - if (this.minimum.width > this.preferred.width || this.minimum.height > this.preferred.height)
|
| - throw new Error("Minimum size is greater than preferred.");
|
| -}
|
| -
|
| -/**
|
| - * @param {?Constraints} constraints
|
| - * @return {boolean}
|
| - */
|
| -Constraints.prototype.isEqual = function(constraints)
|
| -{
|
| - return !!constraints && this.minimum.isEqual(constraints.minimum) && this.preferred.isEqual(constraints.preferred);
|
| -}
|
| -
|
| -/**
|
| - * @param {!Constraints|number} value
|
| - * @return {!Constraints}
|
| - */
|
| -Constraints.prototype.widthToMax = function(value)
|
| -{
|
| - if (typeof value === "number")
|
| - return new Constraints(this.minimum.widthToMax(value), this.preferred.widthToMax(value));
|
| - return new Constraints(this.minimum.widthToMax(value.minimum), this.preferred.widthToMax(value.preferred));
|
| -}
|
| -
|
| -/**
|
| - * @param {!Constraints|number} value
|
| - * @return {!Constraints}
|
| - */
|
| -Constraints.prototype.addWidth = function(value)
|
| -{
|
| - if (typeof value === "number")
|
| - return new Constraints(this.minimum.addWidth(value), this.preferred.addWidth(value));
|
| - return new Constraints(this.minimum.addWidth(value.minimum), this.preferred.addWidth(value.preferred));
|
| -}
|
| -
|
| -/**
|
| - * @param {!Constraints|number} value
|
| - * @return {!Constraints}
|
| - */
|
| -Constraints.prototype.heightToMax = function(value)
|
| -{
|
| - if (typeof value === "number")
|
| - return new Constraints(this.minimum.heightToMax(value), this.preferred.heightToMax(value));
|
| - return new Constraints(this.minimum.heightToMax(value.minimum), this.preferred.heightToMax(value.preferred));
|
| -}
|
| -
|
| -/**
|
| - * @param {!Constraints|number} value
|
| - * @return {!Constraints}
|
| - */
|
| -Constraints.prototype.addHeight = function(value)
|
| -{
|
| - if (typeof value === "number")
|
| - return new Constraints(this.minimum.addHeight(value), this.preferred.addHeight(value));
|
| - return new Constraints(this.minimum.addHeight(value.minimum), this.preferred.addHeight(value.preferred));
|
| -}
|
| -
|
| -/**
|
| * @param {!Event} event
|
| * @return {boolean}
|
| */
|
|
|