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

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

Issue 2712063002: [DevTools] Migrate Popover to GlassPane (Closed)
Patch Set: nit Created 3 years, 9 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 c030963a492b14dd4d51204d77f9947d76ede28b..57fe8d8f0f21004c9db6fa97fa06272cd303c633 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
@@ -502,26 +502,6 @@ UI.Widget = class extends Common.Object {
}
/**
- * @return {!UI.Size}
- */
- measurePreferredSize() {
- var document = this.element.ownerDocument;
- var oldParent = this.element.parentElement;
- var oldNextSibling = this.element.nextSibling;
-
- UI.Widget._originalAppendChild.call(document.body, this.element);
- this.element.positionAt(0, 0);
- var result = new UI.Size(this.element.offsetWidth, this.element.offsetHeight);
-
- this.element.positionAt(undefined, undefined);
- if (oldParent)
- UI.Widget._originalInsertBefore.call(oldParent, this.element, oldNextSibling);
- else
- UI.Widget._originalRemoveChild.call(document.body, this.element);
- return result;
- }
-
- /**
* @return {!UI.Constraints}
*/
calculateConstraints() {

Powered by Google App Engine
This is Rietveld 408576698