| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "core/css/CSSValuePool.h" | 27 #include "core/css/CSSValuePool.h" |
| 28 | 28 |
| 29 #include "core/css/parser/BisonCSSParser.h" | 29 #include "core/css/parser/BisonCSSParser.h" |
| 30 #include "core/css/CSSValueList.h" | 30 #include "core/css/CSSValueList.h" |
| 31 #include "core/rendering/style/RenderStyle.h" | 31 #include "core/rendering/style/RenderStyle.h" |
| 32 | 32 |
| 33 namespace WebCore { | 33 namespace WebCore { |
| 34 | 34 |
| 35 DEFINE_GC_INFO(CSSValuePool); | |
| 36 | |
| 37 CSSValuePool& cssValuePool() | 35 CSSValuePool& cssValuePool() |
| 38 { | 36 { |
| 39 #if ENABLE(OILPAN) | 37 #if ENABLE(OILPAN) |
| 40 DEFINE_STATIC_LOCAL(Persistent<CSSValuePool>, pool, (new CSSValuePool())); | 38 DEFINE_STATIC_LOCAL(Persistent<CSSValuePool>, pool, (new CSSValuePool())); |
| 41 return *pool; | 39 return *pool; |
| 42 #else | 40 #else |
| 43 DEFINE_STATIC_LOCAL(CSSValuePool, pool, ()); | 41 DEFINE_STATIC_LOCAL(CSSValuePool, pool, ()); |
| 44 return pool; | 42 return pool; |
| 45 #endif // ENABLE(OILPAN) | 43 #endif // ENABLE(OILPAN) |
| 46 } | 44 } |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 visitor->trace(m_colorWhite); | 159 visitor->trace(m_colorWhite); |
| 162 visitor->trace(m_colorBlack); | 160 visitor->trace(m_colorBlack); |
| 163 visitor->trace(m_pixelValueCache); | 161 visitor->trace(m_pixelValueCache); |
| 164 visitor->trace(m_percentValueCache); | 162 visitor->trace(m_percentValueCache); |
| 165 visitor->trace(m_numberValueCache); | 163 visitor->trace(m_numberValueCache); |
| 166 visitor->trace(m_fontFaceValueCache); | 164 visitor->trace(m_fontFaceValueCache); |
| 167 visitor->trace(m_fontFamilyValueCache); | 165 visitor->trace(m_fontFamilyValueCache); |
| 168 } | 166 } |
| 169 | 167 |
| 170 } | 168 } |
| OLD | NEW |