Summary: | Remove needless virtual calls and inline RenderStyle::logical* to make table layout faster | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> | ||||
Component: | New Bugs | Assignee: | Eric Seidel (no email) <eric> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | abarth, jchaffraix, kling, koivisto, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 98798 | ||||||
Attachments: |
|
Description
Eric Seidel (no email)
2012-10-05 13:21:38 PDT
Created attachment 167373 [details]
Patch
Comment on attachment 167373 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=167373&action=review > Source/WebCore/rendering/AutoTableLayout.cpp:52 > + for (RenderObject* child = m_table->children()->firstChild(); child; child = child->nextSibling()) { For the uninitiated: firstChild() calls virtualChildren()->firstChild(), and is defined on RenderObject. The pointer in question already has a non-virtual children() method which is faster. :) Comment on attachment 167373 [details]
Patch
Nifty! r=me
Comment on attachment 167373 [details] Patch Clearing flags on attachment: 167373 Committed r130560: <http://trac.webkit.org/changeset/130560> All reviewed patches have been landed. Closing bug. |