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

Issue 1653213002: Devtools: Use Event.deepPath as a function if available. (Closed)

Created:
4 years, 10 months ago by samli
Modified:
4 years, 10 months ago
Reviewers:
dgozman, pfeldman
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Devtools: Use Event.deepPath as a function if available. In crrev.com/1637813002 Event.deepPath changes from an attribute to a function. Event.deepPath is the prefered method for retriving all elements at point in an event. This change also adds a fallback to Event.path for old front-ends targeting Event.deepPath as an attribute. Committed: https://crrev.com/9e13f37d07379cf402dfe7ad981923a8eb8787f0 Cr-Commit-Position: refs/heads/master@{#374084}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M third_party/WebKit/Source/devtools/front_end/devtools.js View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (6 generated)
samli
parentElementOrShadowHost() isn't the same. Want to traverse all elements under mouse point.
4 years, 10 months ago (2016-02-01 22:12:02 UTC) #2
pfeldman
https://codereview.chromium.org/1653213002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js File third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js (right): https://codereview.chromium.org/1653213002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js#newcode36 third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js:36: var path = event.deepPath && typeof event.deepPath == "function" ...
4 years, 10 months ago (2016-02-01 22:52:18 UTC) #3
dgozman
https://codereview.chromium.org/1653213002/diff/1/third_party/WebKit/Source/devtools/front_end/devtools.js File third_party/WebKit/Source/devtools/front_end/devtools.js (right): https://codereview.chromium.org/1653213002/diff/1/third_party/WebKit/Source/devtools/front_end/devtools.js#newcode966 third_party/WebKit/Source/devtools/front_end/devtools.js:966: if (Object.getOwnPropertyDescriptor(Event.prototype, "deepPath")) Please move this code (and a ...
4 years, 10 months ago (2016-02-02 02:45:45 UTC) #5
samli
https://codereview.chromium.org/1653213002/diff/1/third_party/WebKit/Source/devtools/front_end/devtools.js File third_party/WebKit/Source/devtools/front_end/devtools.js (right): https://codereview.chromium.org/1653213002/diff/1/third_party/WebKit/Source/devtools/front_end/devtools.js#newcode966 third_party/WebKit/Source/devtools/front_end/devtools.js:966: if (Object.getOwnPropertyDescriptor(Event.prototype, "deepPath")) On 2016/02/02 at 02:45:45, dgozman wrote: ...
4 years, 10 months ago (2016-02-03 00:07:11 UTC) #6
pfeldman
> True, but I wanted to be able to remove the bit in devtools.js at ...
4 years, 10 months ago (2016-02-03 00:09:09 UTC) #7
samli
On 2016/02/03 at 00:09:09, pfeldman wrote: > > True, but I wanted to be able ...
4 years, 10 months ago (2016-02-03 00:14:04 UTC) #8
pfeldman
https://codereview.chromium.org/1653213002/diff/40001/third_party/WebKit/Source/devtools/front_end/devtools.js File third_party/WebKit/Source/devtools/front_end/devtools.js (right): https://codereview.chromium.org/1653213002/diff/40001/third_party/WebKit/Source/devtools/front_end/devtools.js#newcode913 third_party/WebKit/Source/devtools/front_end/devtools.js:913: if (Object.getOwnPropertyDescriptor(Event.prototype, "deepPath")) Wouldn't it remove it at all ...
4 years, 10 months ago (2016-02-03 00:16:24 UTC) #9
samli
https://codereview.chromium.org/1653213002/diff/40001/third_party/WebKit/Source/devtools/front_end/devtools.js File third_party/WebKit/Source/devtools/front_end/devtools.js (right): https://codereview.chromium.org/1653213002/diff/40001/third_party/WebKit/Source/devtools/front_end/devtools.js#newcode913 third_party/WebKit/Source/devtools/front_end/devtools.js:913: if (Object.getOwnPropertyDescriptor(Event.prototype, "deepPath")) On 2016/02/03 at 00:16:24, pfeldman wrote: ...
4 years, 10 months ago (2016-02-03 00:17:57 UTC) #10
samli
ping
4 years, 10 months ago (2016-02-03 18:06:11 UTC) #11
pfeldman
https://codereview.chromium.org/1653213002/diff/40001/third_party/WebKit/Source/devtools/front_end/devtools.js File third_party/WebKit/Source/devtools/front_end/devtools.js (right): https://codereview.chromium.org/1653213002/diff/40001/third_party/WebKit/Source/devtools/front_end/devtools.js#newcode913 third_party/WebKit/Source/devtools/front_end/devtools.js:913: if (Object.getOwnPropertyDescriptor(Event.prototype, "deepPath")) On 2016/02/03 00:17:57, samli wrote: > ...
4 years, 10 months ago (2016-02-04 00:19:58 UTC) #12
samli
On 2016/02/04 at 00:19:58, pfeldman wrote: > https://codereview.chromium.org/1653213002/diff/40001/third_party/WebKit/Source/devtools/front_end/devtools.js > File third_party/WebKit/Source/devtools/front_end/devtools.js (right): > > https://codereview.chromium.org/1653213002/diff/40001/third_party/WebKit/Source/devtools/front_end/devtools.js#newcode913 ...
4 years, 10 months ago (2016-02-04 01:06:20 UTC) #13
samli
4 years, 10 months ago (2016-02-04 01:06:24 UTC) #14
pfeldman
lgtm
4 years, 10 months ago (2016-02-06 02:43:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653213002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653213002/60001
4 years, 10 months ago (2016-02-06 02:43:56 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/19388)
4 years, 10 months ago (2016-02-06 03:35:33 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1653213002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1653213002/60001
4 years, 10 months ago (2016-02-08 03:41:40 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-08 05:13:53 UTC) #22
commit-bot: I haz the power
4 years, 10 months ago (2016-02-08 05:15:24 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9e13f37d07379cf402dfe7ad981923a8eb8787f0
Cr-Commit-Position: refs/heads/master@{#374084}

Powered by Google App Engine
This is Rietveld 408576698