Bug 74261

Summary: Micro-optimize CSSStyleSelector::findSiblingForStyleSharing().
Product: WebKit Reporter: Andreas Kling <kling>
Component: CSSAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, macpherson, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Proposed patch koivisto: review+

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>