#include "core/css/CSSValueList.h"
#include "core/rendering/style/RenderStyle.h"
-namespace WebCore {
+namespace blink {
CSSValuePool& cssValuePool()
{
-#if ENABLE(OILPAN)
- DEFINE_STATIC_LOCAL(Persistent<CSSValuePool>, pool, (new CSSValuePool()));
+ DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<CSSValuePool>, pool, (adoptPtrWillBeNoop(new CSSValuePool())));
return *pool;
-#else
- DEFINE_STATIC_LOCAL(CSSValuePool, pool, ());
- return pool;
-#endif // ENABLE(OILPAN)
}
CSSValuePool::CSSValuePool()
void CSSValuePool::trace(Visitor* visitor)
{
+#if ENABLE(OILPAN)
visitor->trace(m_inheritedValue);
visitor->trace(m_implicitInitialValue);
visitor->trace(m_explicitInitialValue);
visitor->trace(m_numberValueCache);
visitor->trace(m_fontFaceValueCache);
visitor->trace(m_fontFamilyValueCache);
+#endif
}
}