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

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

Issue 2658383002: [DevTools] Make UI.GlassPane position contentElement for different overlay controls. (Closed)
Patch Set: rebased 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/Tooltip.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js b/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js
index 9b8d07d1578c78e94f317b512724630699b2561a..165d2b54454e560ee0b99449f478607c226ed35e 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js
@@ -113,7 +113,7 @@ UI.Tooltip = class {
this._tooltipLastOpened = instant ? now : now + UI.Tooltip.Timing.OpeningDelay;
// Get container element.
- var container = UI.Dialog.modalHostView().element;
+ var container = UI.GlassPane.container(/** @type {!Document} */ (anchorElement.ownerDocument));
// Position tooltip based on the anchor element.
var containerBox = container.boxInWindow(this.element.window());
var anchorBox = this._anchorElement.boxInWindow(this.element.window());
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/Toolbar.js ('k') | third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698