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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js

Issue 2562453003: [DevTools] Remove Common.Event.target field. (Closed)
Patch Set: works Created 4 years 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/emulation/DeviceModeToolbar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
index b7dec58ff9d4436da9a4a750cd47d4f954ea6841..54fa80e72e892432fc029a735f7eeb4ae04d97cc 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
@@ -452,8 +452,8 @@ Emulation.DeviceModeToolbar = class {
}
var contextMenu = new UI.ContextMenu(
- /** @type {!Event} */ (event.data), false, event.target.element.totalOffsetLeft(),
- event.target.element.totalOffsetTop() + event.target.element.offsetHeight);
+ /** @type {!Event} */ (event.data), false, this._modeButton.element.totalOffsetLeft(),
+ this._modeButton.element.totalOffsetTop() + this._modeButton.element.offsetHeight);
addOrientation(Emulation.EmulatedDevice.Vertical, Common.UIString('Portrait'));
addOrientation(Emulation.EmulatedDevice.Horizontal, Common.UIString('Landscape'));
contextMenu.show();

Powered by Google App Engine
This is Rietveld 408576698