Bug 125916 - Move function calls outside loop in dom
Summary: Move function calls outside loop in dom
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-18 02:19 PST by Laszlo Vidacs
Modified: 2013-12-20 02:59 PST (History)
7 users (show)

See Also:


Attachments
Patch (2.42 KB, patch)
2013-12-18 04:11 PST, Laszlo Vidacs
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.