Bug 74261 - Micro-optimize CSSStyleSelector::findSiblingForStyleSharing().
Summary: Micro-optimize CSSStyleSelector::findSiblingForStyleSharing().
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-11 17:51 PST by Andreas Kling
Modified: 2011-12-11 19:43 PST (History)
3 users (show)

See Also:


Attachments
Proposed patch (4.43 KB, patch)
2011-12-11 18:04 PST, Andreas Kling
koivisto: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2011-12-11 17:51:59 PST
We could move the isStyledElement() check from canShareStyleWithElement() to the loop in findSiblingForStyleSharing().
Comment 1 Andreas Kling 2011-12-11 18:04:44 PST
Created attachment 118720 [details]
Proposed patch
Comment 2 Andreas Kling 2011-12-11 19:43:37 PST
Committed r102555: <http://trac.webkit.org/changeset/102555>