| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 const unsigned maximumFontFaceCacheSize = 128; | 139 const unsigned maximumFontFaceCacheSize = 128; |
| 140 if (m_fontFaceValueCache.size() > maximumFontFaceCacheSize) | 140 if (m_fontFaceValueCache.size() > maximumFontFaceCacheSize) |
| 141 m_fontFaceValueCache.clear(); | 141 m_fontFaceValueCache.clear(); |
| 142 | 142 |
| 143 RefPtr<CSSValueList>& value = m_fontFaceValueCache.add(string, nullptr).stor
edValue->value; | 143 RefPtr<CSSValueList>& value = m_fontFaceValueCache.add(string, nullptr).stor
edValue->value; |
| 144 if (!value) | 144 if (!value) |
| 145 value = BisonCSSParser::parseFontFaceValue(string); | 145 value = BisonCSSParser::parseFontFaceValue(string); |
| 146 return value; | 146 return value; |
| 147 } | 147 } |
| 148 | 148 |
| 149 void CSSValuePool::trace(Visitor* visitor) | |
| 150 { | |
| 151 #if ENABLE(OILPAN) | |
| 152 visitor->trace(m_inheritedValue); | |
| 153 visitor->trace(m_implicitInitialValue); | |
| 154 visitor->trace(m_explicitInitialValue); | |
| 155 visitor->trace(m_identifierValueCache); | |
| 156 visitor->trace(m_colorValueCache); | |
| 157 visitor->trace(m_colorTransparent); | |
| 158 visitor->trace(m_colorWhite); | |
| 159 visitor->trace(m_colorBlack); | |
| 160 visitor->trace(m_pixelValueCache); | |
| 161 visitor->trace(m_percentValueCache); | |
| 162 visitor->trace(m_numberValueCache); | |
| 163 visitor->trace(m_fontFaceValueCache); | |
| 164 visitor->trace(m_fontFamilyValueCache); | |
| 165 #endif | |
| 166 } | 149 } |
| 167 | |
| 168 } | |
| OLD | NEW |