[webkit-reviews] review granted: [Bug 78406] Move CSSOM wrapper pointer out of StylePropertySet : [Attachment 126620] patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 10 23:33:15 PST 2012
Andreas Kling <kling at webkit.org> has granted Antti Koivisto <koivisto at iki.fi>'s
request for review:
Bug 78406: Move CSSOM wrapper pointer out of StylePropertySet
https://bugs.webkit.org/show_bug.cgi?id=78406
Attachment 126620: patch
https://bugs.webkit.org/attachment.cgi?id=126620&action=review
------- Additional Comments from Andreas Kling <kling at webkit.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=126620&action=review
r=me with one fix:
> Source/WebCore/css/StylePropertySet.cpp:49
> +static PropertySetCSSOMWrapperMap* propertySetCSSOMWrapperMap;
This pointer needs to be explicitly initialized.
Also, a common pattern in WebKit is to write these like so:
static PropertySetCSSOMWrapperMap& propertySetCSSOMWrapperMap()
{
DEFINE_STATIC_LOCAL(PropertySetCSSOMWrapperMap, derp, ());
return derp;
}
More information about the webkit-reviews
mailing list