Closed Bug 1236673 Opened 8 years ago Closed 8 years ago

Add a method for getting the canonical node along a path

Categories

(DevTools :: General, defect)

defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
Firefox 46
Tracking Status
firefox46 --- fixed

People

(Reporter: fitzgen, Assigned: fitzgen)

References

Details

Attachments

(1 file)

      No description provided.
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=f05b7e96c7d9
Assignee: nobody → nfitzgerald
Blocks: 1229229
Status: NEW → ASSIGNED
Depends on: 1235883
Comment on attachment 8703809 [details] [diff] [review]
Add a method for getting the canonical node along a path

Review of attachment 8703809 [details] [diff] [review]:
-----------------------------------------------------------------

::: devtools/shared/heapsnapshot/DominatorTreeNode.js
@@ +266,5 @@
> + * @param {Array<NodeId>} path
> + *
> + * @returns {DominatorTreeNode|null}
> + */
> +DominatorTreeNode.getCanonicalNodeAlongPath = function (id, tree, path) {

This took me a bit to understand, but it seems pretty straight forward -- I'm not sure if `canonical` is the best word in this case -- we have concepts of an `id` as well as a `node`, and `path` in this method -- would something like `getNodeByIdFromPath`? Still a mouthful, but more immediately clear (IMO) what this is doing -- I don't feel too strongly about this though, this isn't a hot method used all over the place
Attachment #8703809 - Flags: review?(jsantell) → review+
https://hg.mozilla.org/mozilla-central/rev/8639f1a63095
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
[bugday-20160323]

Status: RESOLVED,FIXED -> UNVERIFIED

Comments:
STR: Not clear.
Developer specific testing

Component: 
Name			Firefox
Version			46.0b9
Build ID		20160322075646
Update Channel          beta
User Agent		Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
OS			Windows 7 SP1 x86_64

Expected Results: 
Developer specific testing

Actual Results: 
As expected
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: