Bug 125916

Summary: Move function calls outside loop in dom
Product: WebKit Reporter: Laszlo Vidacs <lvidacs.u-szeged>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, cmarcelo, commit-queue, darin, esprehn+autocc, kangil.han, lvidacs.u-szeged
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Laszlo Vidacs
Reported 2013-12-18 02:19:27 PST
Dom Node::dumpStatistics() and Element::cloneAttributesFromElement(const Element& other) calls length() method in each iteration, while the number of elements does not change within the loop.
Attachments
Patch (2.42 KB, patch)
2013-12-18 04:11 PST, Laszlo Vidacs
no flags
Laszlo Vidacs
Comment 1 2013-12-18 04:11:40 PST
WebKit Commit Bot
Comment 2 2013-12-20 02:58:58 PST
Comment on attachment 219521 [details] Patch Clearing flags on attachment: 219521 Committed r160901: <http://trac.webkit.org/changeset/160901>
WebKit Commit Bot
Comment 3 2013-12-20 02:59:00 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.