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()); |