OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #include "core/css/CSSValueList.h" | 28 #include "core/css/CSSValueList.h" |
29 #include "core/css/parser/CSSParser.h" | 29 #include "core/css/parser/CSSParser.h" |
30 #include "core/style/ComputedStyle.h" | 30 #include "core/style/ComputedStyle.h" |
31 #include "wtf/Threading.h" | 31 #include "wtf/Threading.h" |
32 | 32 |
33 namespace blink { | 33 namespace blink { |
34 | 34 |
35 CSSValuePool& cssValuePool() | 35 CSSValuePool& cssValuePool() |
36 { | 36 { |
37 DEFINE_STATIC_LOCAL(Persistent<CSSValuePool>, pool, (new CSSValuePool())); | 37 DEFINE_STATIC_LOCAL(CSSValuePool, pool, (new CSSValuePool)); |
38 return *pool; | 38 return pool; |
39 } | 39 } |
40 | 40 |
41 CSSValuePool::CSSValuePool() | 41 CSSValuePool::CSSValuePool() |
42 : m_inheritedValue(CSSInheritedValue::create()) | 42 : m_inheritedValue(CSSInheritedValue::create()) |
43 , m_implicitInitialValue(CSSInitialValue::createImplicit()) | 43 , m_implicitInitialValue(CSSInitialValue::createImplicit()) |
44 , m_explicitInitialValue(CSSInitialValue::createExplicit()) | 44 , m_explicitInitialValue(CSSInitialValue::createExplicit()) |
45 , m_unsetValue(CSSUnsetValue::create()) | 45 , m_unsetValue(CSSUnsetValue::create()) |
46 , m_colorTransparent(CSSColorValue::create(Color::transparent)) | 46 , m_colorTransparent(CSSColorValue::create(Color::transparent)) |
47 , m_colorWhite(CSSColorValue::create(Color::white)) | 47 , m_colorWhite(CSSColorValue::create(Color::white)) |
48 , m_colorBlack(CSSColorValue::create(Color::black)) | 48 , m_colorBlack(CSSColorValue::create(Color::black)) |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 visitor->trace(m_colorBlack); | 176 visitor->trace(m_colorBlack); |
177 visitor->trace(m_pixelValueCache); | 177 visitor->trace(m_pixelValueCache); |
178 visitor->trace(m_percentValueCache); | 178 visitor->trace(m_percentValueCache); |
179 visitor->trace(m_numberValueCache); | 179 visitor->trace(m_numberValueCache); |
180 visitor->trace(m_fontFaceValueCache); | 180 visitor->trace(m_fontFaceValueCache); |
181 visitor->trace(m_fontFamilyValueCache); | 181 visitor->trace(m_fontFamilyValueCache); |
182 #endif | 182 #endif |
183 } | 183 } |
184 | 184 |
185 } // namespace blink | 185 } // namespace blink |
OLD | NEW |