Closed
Bug 944149
Opened 11 years ago
Closed 11 years ago
Optimize nsContentUtils::PositionIsBefore
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
Tracking | Status | |
---|---|---|
firefox28 | --- | fixed |
People
(Reporter: smaug, Assigned: smaug)
References
Details
(Whiteboard: [qa-])
Attachments
(3 files)
884 bytes,
text/html
|
Details | |
965 bytes,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
963 bytes,
patch
|
Details | Diff | Splinter Review |
.
Assignee | ||
Updated•11 years ago
|
Summary: Don't call nsContentUtils::PositionIsBefore so eagerly in nsContentList::ContentAppended → Optimize nsContentUtils::PositionIsBefore
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=1ce9c4fbbe0f
Attachment #8339650 -
Flags: review?(bzbarsky)
Comment 3•11 years ago
|
||
Comment on attachment 8339650 [details] [diff] [review] v1 r=me
Attachment #8339650 -
Flags: review?(bzbarsky) → review+
Comment 4•11 years ago
|
||
Comment on attachment 8339650 [details] [diff] [review] v1 Review of attachment 8339650 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/base/src/nsINode.cpp @@ +741,5 @@ > } > + if (GetPreviousSibling() == &aOtherNode) { > + MOZ_ASSERT(GetParentNode() == aOtherNode.GetParentNode()); > + return static_cast<uint16_t>(nsIDOMNode::DOCUMENT_POSITION_PRECEDING); > + } else if (GetNextSibling() == &aOtherNode) { Drop the else?
Assignee | ||
Comment 5•11 years ago
|
||
Assignee | ||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/bf413fe5f44e
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/bf413fe5f44e
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Comment 8•11 years ago
|
||
On the test attached here I get Nightly - 7~10ms Chrome 31 - 200ms Firefox Beta - 400ms IE 11 - 100ms
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•