Bug 96450

Summary: [Scoped Style] NodeRareData::m_numberOfScopedHTMLStyleChildren could be replaced with a node flag.
Product: WebKit Reporter: Hajime Morrita <morrita>
Component: CSSAssignee: Hajime Morrita <morrita>
Status: RESOLVED FIXED    
Severity: Normal CC: webcomponents-bugzilla, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 72352, 59827    
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Hajime Morrita 2012-09-11 16:55:10 PDT
Since this member is hit frequently in StyleResolver, this looks worth killed by a bit flag,
which is much efficient.
Comment 1 Hajime Morrita 2012-09-11 18:41:50 PDT
Created attachment 163493 [details]
Patch
Comment 2 Dimitri Glazkov (Google) 2012-09-11 20:38:30 PDT
Comment on attachment 163493 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=163493&action=review

> Source/WebCore/ChangeLog:10
> +        Instead of tracking the number of certain node, this chagne compute the number

chagne->change

> Source/WebCore/html/HTMLStyleElement.cpp:128
> +    // Note: We cannot rely on the 'scoped' element still being present when this method is invoked.

I think he meant 'scoped' _attribute_?
Comment 3 Build Bot 2012-09-11 20:42:23 PDT
Comment on attachment 163493 [details]
Patch

Attachment 163493 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/13832193
Comment 4 Build Bot 2012-09-11 21:17:15 PDT
Comment on attachment 163493 [details]
Patch

Attachment 163493 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/13827484
Comment 5 Hajime Morrita 2012-09-12 09:11:14 PDT
Dimitri, thank for taking a look at such a late at night!
I'll address the points and land the change.

(In reply to comment #2)
> (From update of attachment 163493 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=163493&action=review
> 
> > Source/WebCore/ChangeLog:10
> > +        Instead of tracking the number of certain node, this chagne compute the number
> 
> chagne->change
Will fix. hmm.

> 
> > Source/WebCore/html/HTMLStyleElement.cpp:128
> > +    // Note: We cannot rely on the 'scoped' element still being present when this method is invoked.
> 
> I think he meant 'scoped' _attribute_?
Well, I just moved this around. But yes, it looks. Will fix.
Comment 6 Hajime Morrita 2012-09-12 09:21:06 PDT
Created attachment 163646 [details]
Patch for landing
Comment 7 WebKit Review Bot 2012-09-12 09:54:32 PDT
Comment on attachment 163646 [details]
Patch for landing

Clearing flags on attachment: 163646

Committed r128331: <http://trac.webkit.org/changeset/128331>
Comment 8 WebKit Review Bot 2012-09-12 09:54:35 PDT
All reviewed patches have been landed.  Closing bug.