Closed
Bug 1347634
Opened 4 years ago
Closed 4 years ago
GetCustomElementData should be non-virtual and inline
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
RESOLVED
FIXED
mozilla55
| Tracking | Status | |
|---|---|---|
| firefox55 | --- | fixed |
People
(Reporter: smaug, Assigned: edgar)
References
Details
(Whiteboard: [qf-])
Attachments
(1 file, 1 obsolete file)
|
8.45 KB,
patch
|
edgar
:
review+
|
Details | Diff | Splinter Review |
It is used in some very hot code paths.
Updated•4 years ago
|
Whiteboard: [qf-]
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Updated•4 years ago
|
Assignee: nobody → echen
| Assignee | ||
Comment 2•4 years ago
|
||
Comment on attachment 8847895 [details] [diff] [review] Patch, v1 Review of attachment 8847895 [details] [diff] [review]: ----------------------------------------------------------------- And SetCustomElementData don't need to be virtual, either.
Attachment #8847895 -
Flags: review?(bugs)
| Assignee | ||
Comment 3•4 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ebbcd7f68b4e4867bff12cb23a8c47de0a6a1d7f&group_state=expanded&filter-tier=1
| Reporter | ||
Comment 4•4 years ago
|
||
Comment on attachment 8847895 [details] [diff] [review] Patch, v1 + nsDOMSlots *slots = GetExistingDOMSlots(); nit, nsDOMSlots* slots It would be even nicer to move Get/SetCustomElementData to Element class, since looks like all the callers deal with Element already. And then + /** + * Sets the custom element data, ownership of the + * callback data is taken by this content. s/taken by this content/taken by this element/ With those, r+ Thanks!
Attachment #8847895 -
Flags: review?(bugs) → review+
| Assignee | ||
Comment 5•4 years ago
|
||
Address review comment #4, - move Get/SetCustomElementData to Element - Fix comment: s/taken by this content/taken by this element/
Attachment #8847895 -
Attachment is obsolete: true
Attachment #8848392 -
Flags: review+
| Assignee | ||
Comment 6•4 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=56ed9aaca639733662dce29e2483a976b9ea01c4&group_state=expanded&filter-tier=1
Pushed by echen@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/f7f08f950287 GetCustomElementData and SetCustomElementData don't need to be virtual; r=smaug
Comment 8•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f7f08f950287
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•2 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•