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+

Andreas Kling
Reported 2011-12-11 17:51:59 PST
We could move the isStyledElement() check from canShareStyleWithElement() to the loop in findSiblingForStyleSharing().
Attachments
Proposed patch (4.43 KB, patch)
2011-12-11 18:04 PST, Andreas Kling
koivisto: review+
Andreas Kling
Comment 1 2011-12-11 18:04:44 PST
Created attachment 118720 [details] Proposed patch
Andreas Kling
Comment 2 2011-12-11 19:43:37 PST
Note You need to log in before you can comment on or make changes to this bug.