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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/Widget.js

Issue 2626143004: DevTools: move from Common module - Geometry and CSSShadowModel (Closed)
Patch Set: minimize test diff Created 3 years, 11 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
Index: third_party/WebKit/Source/devtools/front_end/ui/Widget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
index e92543a77cbbf1f8e36d84596a5b08fe1ae194d7..c030963a492b14dd4d51204d77f9947d76ede28b 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
@@ -502,7 +502,7 @@ UI.Widget = class extends Common.Object {
}
/**
- * @return {!Size}
+ * @return {!UI.Size}
*/
measurePreferredSize() {
var document = this.element.ownerDocument;
@@ -511,7 +511,7 @@ UI.Widget = class extends Common.Object {
UI.Widget._originalAppendChild.call(document.body, this.element);
this.element.positionAt(0, 0);
- var result = new Size(this.element.offsetWidth, this.element.offsetHeight);
+ var result = new UI.Size(this.element.offsetWidth, this.element.offsetHeight);
this.element.positionAt(undefined, undefined);
if (oldParent)
@@ -522,14 +522,14 @@ UI.Widget = class extends Common.Object {
}
/**
- * @return {!Constraints}
+ * @return {!UI.Constraints}
*/
calculateConstraints() {
- return new Constraints();
+ return new UI.Constraints();
}
/**
- * @return {!Constraints}
+ * @return {!UI.Constraints}
*/
constraints() {
if (typeof this._constraints !== 'undefined')
@@ -546,7 +546,7 @@ UI.Widget = class extends Common.Object {
* @param {number} preferredHeight
*/
setMinimumAndPreferredSizes(width, height, preferredWidth, preferredHeight) {
- this._constraints = new Constraints(new Size(width, height), new Size(preferredWidth, preferredHeight));
+ this._constraints = new UI.Constraints(new UI.Size(width, height), new UI.Size(preferredWidth, preferredHeight));
this.invalidateConstraints();
}
@@ -555,7 +555,7 @@ UI.Widget = class extends Common.Object {
* @param {number} height
*/
setMinimumSize(width, height) {
- this._constraints = new Constraints(new Size(width, height));
+ this._constraints = new UI.Constraints(new UI.Size(width, height));
this.invalidateConstraints();
}
@@ -615,10 +615,10 @@ UI.VBox = class extends UI.Widget {
/**
* @override
- * @return {!Constraints}
+ * @return {!UI.Constraints}
*/
calculateConstraints() {
- var constraints = new Constraints();
+ var constraints = new UI.Constraints();
/**
* @this {!UI.Widget}
@@ -649,10 +649,10 @@ UI.HBox = class extends UI.Widget {
/**
* @override
- * @return {!Constraints}
+ * @return {!UI.Constraints}
*/
calculateConstraints() {
- var constraints = new Constraints();
+ var constraints = new UI.Constraints();
/**
* @this {!UI.Widget}

Powered by Google App Engine
This is Rietveld 408576698