| 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 26 matching lines...) Expand all Loading... |
| 37 #include "core/css/CSSPrimitiveValue.h" | 37 #include "core/css/CSSPrimitiveValue.h" |
| 38 #include "core/css/CSSUnsetValue.h" | 38 #include "core/css/CSSUnsetValue.h" |
| 39 #include "core/css/CSSValueList.h" | 39 #include "core/css/CSSValueList.h" |
| 40 #include "wtf/HashMap.h" | 40 #include "wtf/HashMap.h" |
| 41 #include "wtf/RefPtr.h" | 41 #include "wtf/RefPtr.h" |
| 42 #include "wtf/text/AtomicStringHash.h" | 42 #include "wtf/text/AtomicStringHash.h" |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class CORE_EXPORT CSSValuePool : public GarbageCollectedFinalized<CSSValuePool>
{ | 46 class CORE_EXPORT CSSValuePool : public GarbageCollectedFinalized<CSSValuePool>
{ |
| 47 WTF_MAKE_NONCOPYABLE(CSSValuePool); |
| 47 public: | 48 public: |
| 48 CSSValueList* createFontFaceValue(const AtomicString&); | 49 CSSValueList* createFontFaceValue(const AtomicString&); |
| 49 CSSFontFamilyValue* createFontFamilyValue(const String&); | 50 CSSFontFamilyValue* createFontFamilyValue(const String&); |
| 50 CSSInheritedValue* createInheritedValue() { return m_inheritedValue; } | 51 CSSInheritedValue* createInheritedValue() { return m_inheritedValue; } |
| 51 CSSInitialValue* createImplicitInitialValue() { return m_implicitInitialValu
e; } | 52 CSSInitialValue* createImplicitInitialValue() { return m_implicitInitialValu
e; } |
| 52 CSSInitialValue* createExplicitInitialValue() { return m_explicitInitialValu
e; } | 53 CSSInitialValue* createExplicitInitialValue() { return m_explicitInitialValu
e; } |
| 53 CSSUnsetValue* createUnsetValue() { return m_unsetValue; } | 54 CSSUnsetValue* createUnsetValue() { return m_unsetValue; } |
| 54 CSSPrimitiveValue* createIdentifierValue(CSSValueID identifier); | 55 CSSPrimitiveValue* createIdentifierValue(CSSValueID identifier); |
| 55 CSSCustomIdentValue* createIdentifierValue(CSSPropertyID identifier); | 56 CSSCustomIdentValue* createIdentifierValue(CSSPropertyID identifier); |
| 56 CSSColorValue* createColorValue(RGBA32 rgbValue); | 57 CSSColorValue* createColorValue(RGBA32 rgbValue); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 FontFamilyValueCache m_fontFamilyValueCache; | 91 FontFamilyValueCache m_fontFamilyValueCache; |
| 91 | 92 |
| 92 friend CORE_EXPORT CSSValuePool& cssValuePool(); | 93 friend CORE_EXPORT CSSValuePool& cssValuePool(); |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 CORE_EXPORT CSSValuePool& cssValuePool(); | 96 CORE_EXPORT CSSValuePool& cssValuePool(); |
| 96 | 97 |
| 97 } // namespace blink | 98 } // namespace blink |
| 98 | 99 |
| 99 #endif | 100 #endif |
| OLD | NEW |