Closed
Bug 944149
Opened 12 years ago
Closed 12 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•12 years ago
|
Summary: Don't call nsContentUtils::PositionIsBefore so eagerly in nsContentList::ContentAppended → Optimize nsContentUtils::PositionIsBefore
| Assignee | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #8339650 -
Flags: review?(bzbarsky)
Comment 3•12 years ago
|
||
Comment on attachment 8339650 [details] [diff] [review]
v1
r=me
Attachment #8339650 -
Flags: review?(bzbarsky) → review+
Comment 4•12 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•12 years ago
|
||
| Assignee | ||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Comment 8•12 years ago
|
||
On the test attached here I get
Nightly - 7~10ms
Chrome 31 - 200ms
Firefox Beta - 400ms
IE 11 - 100ms
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•