Closed Bug 1430951 Opened 8 years ago Closed 8 years ago

Avoid element name atomizing to improve performance of LookupCustomElementDefinition

Categories

(Core :: DOM: Core & HTML, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: edgar, Assigned: edgar)

References

Details

Attachments

(1 file)

Blocks: 1396575
Attachment #8943142 - Flags: review?(bugs)
Comment on attachment 8943142 [details] Bug 1430951 - Avoid element name atomizing to improve performance of LookupCustomElementDefinition; https://reviewboard.mozilla.org/r/213432/#review219336 ::: dom/base/nsContentUtils.cpp:9926 (Diff revision 1) > NodeInfo* nodeInfo = aElement->NodeInfo(); > RefPtr<nsAtom> typeAtom = > aElement->GetCustomElementData()->GetCustomElementType(); > CustomElementDefinition* definition = > nsContentUtils::LookupCustomElementDefinition(nodeInfo->GetDocument(), > - nodeInfo->LocalName(), > + nodeInfo->NameAtom(), Could you assert somewhere here that MOZ_ASSERT(nodeInfo->NameAtom()->Equals(nodeIno->LocalName()))
Attachment #8943142 - Flags: review?(bugs) → review+
Comment on attachment 8943142 [details] Bug 1430951 - Avoid element name atomizing to improve performance of LookupCustomElementDefinition; https://reviewboard.mozilla.org/r/213432/#review219336 > Could you assert somewhere here that > MOZ_ASSERT(nodeInfo->NameAtom()->Equals(nodeIno->LocalName())) Will do.
Pushed by top12345tw@gmail.com: https://hg.mozilla.org/integration/autoland/rev/53d7ccf627fa Avoid element name atomizing to improve performance of LookupCustomElementDefinition; r=smaug
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: