Summary: | Optimize collectionLast() and collectionTraverseBackward() in LiveNodeList | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jinwoo Song <jinwoo7.song> | ||||||
Component: | DOM | Assignee: | Jinwoo Song <jinwoo7.song> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, esprehn+autocc, kangil.han, kling, rniwa | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Jinwoo Song
2014-03-05 21:24:17 PST
Created attachment 225953 [details]
Patch
CC'ing Ryosuke who was working on this recently. Comment on attachment 225953 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=225953&action=review > Source/WebCore/dom/LiveNodeList.cpp:112 > + for (unsigned traversedCount = 0; traversedCount < count; ++traversedCount) { We don't need traversedCount. Simply decrement count instead. Created attachment 226097 [details]
Patch
Applied Ryosuke's comment.
Comment on attachment 226097 [details] Patch Clearing flags on attachment: 226097 Committed r165254: <http://trac.webkit.org/changeset/165254> All reviewed patches have been landed. Closing bug. |