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

Description Laszlo Vidacs 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.
Comment 1 Laszlo Vidacs 2013-12-18 04:11:40 PST
Created attachment 219521 [details]
Patch
Comment 2 WebKit Commit Bot 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>
Comment 3 WebKit Commit Bot 2013-12-20 02:59:00 PST
All reviewed patches have been landed.  Closing bug.