| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 private: | 63 private: |
| 64 CSSValuePool(); | 64 CSSValuePool(); |
| 65 | 65 |
| 66 RefPtrWillBeMember<CSSInheritedValue> m_inheritedValue; | 66 RefPtrWillBeMember<CSSInheritedValue> m_inheritedValue; |
| 67 RefPtrWillBeMember<CSSInitialValue> m_implicitInitialValue; | 67 RefPtrWillBeMember<CSSInitialValue> m_implicitInitialValue; |
| 68 RefPtrWillBeMember<CSSInitialValue> m_explicitInitialValue; | 68 RefPtrWillBeMember<CSSInitialValue> m_explicitInitialValue; |
| 69 RefPtrWillBeMember<CSSUnsetValue> m_unsetValue; | 69 RefPtrWillBeMember<CSSUnsetValue> m_unsetValue; |
| 70 | 70 |
| 71 WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>, numCSSValueKeywords>
m_identifierValueCache; | 71 WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>, numCSSValueKeywords>
m_identifierValueCache; |
| 72 | 72 |
| 73 typedef WillBeHeapHashMap<unsigned, RefPtrWillBeMember<CSSPrimitiveValue> >
ColorValueCache; | 73 typedef WillBeHeapHashMap<unsigned, RefPtrWillBeMember<CSSPrimitiveValue>> C
olorValueCache; |
| 74 ColorValueCache m_colorValueCache; | 74 ColorValueCache m_colorValueCache; |
| 75 RefPtrWillBeMember<CSSPrimitiveValue> m_colorTransparent; | 75 RefPtrWillBeMember<CSSPrimitiveValue> m_colorTransparent; |
| 76 RefPtrWillBeMember<CSSPrimitiveValue> m_colorWhite; | 76 RefPtrWillBeMember<CSSPrimitiveValue> m_colorWhite; |
| 77 RefPtrWillBeMember<CSSPrimitiveValue> m_colorBlack; | 77 RefPtrWillBeMember<CSSPrimitiveValue> m_colorBlack; |
| 78 | 78 |
| 79 static const int maximumCacheableIntegerValue = 255; | 79 static const int maximumCacheableIntegerValue = 255; |
| 80 | 80 |
| 81 WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>, maximumCacheableInte
gerValue + 1> m_pixelValueCache; | 81 WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>, maximumCacheableInte
gerValue + 1> m_pixelValueCache; |
| 82 WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>, maximumCacheableInte
gerValue + 1> m_percentValueCache; | 82 WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>, maximumCacheableInte
gerValue + 1> m_percentValueCache; |
| 83 WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>, maximumCacheableInte
gerValue + 1> m_numberValueCache; | 83 WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>, maximumCacheableInte
gerValue + 1> m_numberValueCache; |
| 84 | 84 |
| 85 typedef WillBeHeapHashMap<AtomicString, RefPtrWillBeMember<CSSValueList> > F
ontFaceValueCache; | 85 typedef WillBeHeapHashMap<AtomicString, RefPtrWillBeMember<CSSValueList>> Fo
ntFaceValueCache; |
| 86 FontFaceValueCache m_fontFaceValueCache; | 86 FontFaceValueCache m_fontFaceValueCache; |
| 87 | 87 |
| 88 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<CSSPrimitiveValue> > Fo
ntFamilyValueCache; | 88 typedef WillBeHeapHashMap<String, RefPtrWillBeMember<CSSPrimitiveValue>> Fon
tFamilyValueCache; |
| 89 FontFamilyValueCache m_fontFamilyValueCache; | 89 FontFamilyValueCache m_fontFamilyValueCache; |
| 90 | 90 |
| 91 friend CSSValuePool& cssValuePool(); | 91 friend CSSValuePool& cssValuePool(); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 CSSValuePool& cssValuePool(); | 94 CSSValuePool& cssValuePool(); |
| 95 | 95 |
| 96 } | 96 } |
| 97 | 97 |
| 98 #endif | 98 #endif |
| OLD | NEW |