RESOLVED FIXED 96450
[Scoped Style] NodeRareData::m_numberOfScopedHTMLStyleChildren could be replaced with a node flag.
https://bugs.webkit.org/show_bug.cgi?id=96450
Summary [Scoped Style] NodeRareData::m_numberOfScopedHTMLStyleChildren could be repla...
Hajime Morrita
Reported 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.
Attachments
Patch (8.69 KB, patch)
2012-09-11 18:41 PDT, Hajime Morrita
no flags
Patch for landing (9.04 KB, patch)
2012-09-12 09:21 PDT, Hajime Morrita
no flags
Hajime Morrita
Comment 1 2012-09-11 18:41:50 PDT
Dimitri Glazkov (Google)
Comment 2 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_?
Build Bot
Comment 3 2012-09-11 20:42:23 PDT
Build Bot
Comment 4 2012-09-11 21:17:15 PDT
Hajime Morrita
Comment 5 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.
Hajime Morrita
Comment 6 2012-09-12 09:21:06 PDT
Created attachment 163646 [details] Patch for landing
WebKit Review Bot
Comment 7 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>
WebKit Review Bot
Comment 8 2012-09-12 09:54:35 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.