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 |
11 * documentation and/or other materials provided with the distribution. | 11 * documentation and/or other materials provided with the distribution. |
12 * | 12 * |
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' | 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' |
14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | 14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS | 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS |
17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | 17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | 18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | 19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | 20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "core/css/CSSValuePool.h" | 26 #include "core/css/CSSValuePool.h" |
27 | 27 |
28 #include "core/css/CSSValueList.h" | |
29 #include "core/css/parser/CSSParser.h" | |
30 #include "core/style/ComputedStyle.h" | |
31 #include "platform/heap/Handle.h" | 28 #include "platform/heap/Handle.h" |
32 #include "wtf/Threading.h" | 29 #include "wtf/Threading.h" |
33 | 30 |
34 namespace blink { | 31 namespace blink { |
35 | 32 |
36 CSSValuePool& cssValuePool() | 33 CSSValuePool& cssValuePool() |
37 { | 34 { |
38 DEFINE_THREAD_SAFE_STATIC_LOCAL(ThreadSpecific<Persistent<CSSValuePool>>, th
readSpecificPool, new ThreadSpecific<Persistent<CSSValuePool>>()); | 35 DEFINE_THREAD_SAFE_STATIC_LOCAL(ThreadSpecific<Persistent<CSSValuePool>>, th
readSpecificPool, new ThreadSpecific<Persistent<CSSValuePool>>()); |
39 Persistent<CSSValuePool>& poolHandle = *threadSpecificPool; | 36 Persistent<CSSValuePool>& poolHandle = *threadSpecificPool; |
40 if (!poolHandle) { | 37 if (!poolHandle) { |
(...skipping 30 matching lines...) Expand all Loading... |
71 visitor->trace(m_identifierValueCache); | 68 visitor->trace(m_identifierValueCache); |
72 visitor->trace(m_pixelValueCache); | 69 visitor->trace(m_pixelValueCache); |
73 visitor->trace(m_percentValueCache); | 70 visitor->trace(m_percentValueCache); |
74 visitor->trace(m_numberValueCache); | 71 visitor->trace(m_numberValueCache); |
75 visitor->trace(m_colorValueCache); | 72 visitor->trace(m_colorValueCache); |
76 visitor->trace(m_fontFaceValueCache); | 73 visitor->trace(m_fontFaceValueCache); |
77 visitor->trace(m_fontFamilyValueCache); | 74 visitor->trace(m_fontFamilyValueCache); |
78 } | 75 } |
79 | 76 |
80 } // namespace blink | 77 } // namespace blink |
OLD | NEW |