| 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 27 matching lines...) Expand all Loading... |
| 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 public: | 47 public: |
| 48 RawPtr<CSSValueList> createFontFaceValue(const AtomicString&); | 48 CSSValueList* createFontFaceValue(const AtomicString&); |
| 49 RawPtr<CSSFontFamilyValue> createFontFamilyValue(const String&); | 49 CSSFontFamilyValue* createFontFamilyValue(const String&); |
| 50 RawPtr<CSSInheritedValue> createInheritedValue() { return m_inheritedValue;
} | 50 CSSInheritedValue* createInheritedValue() { return m_inheritedValue; } |
| 51 RawPtr<CSSInitialValue> createImplicitInitialValue() { return m_implicitInit
ialValue; } | 51 CSSInitialValue* createImplicitInitialValue() { return m_implicitInitialValu
e; } |
| 52 RawPtr<CSSInitialValue> createExplicitInitialValue() { return m_explicitInit
ialValue; } | 52 CSSInitialValue* createExplicitInitialValue() { return m_explicitInitialValu
e; } |
| 53 RawPtr<CSSUnsetValue> createUnsetValue() { return m_unsetValue; } | 53 CSSUnsetValue* createUnsetValue() { return m_unsetValue; } |
| 54 RawPtr<CSSPrimitiveValue> createIdentifierValue(CSSValueID identifier); | 54 CSSPrimitiveValue* createIdentifierValue(CSSValueID identifier); |
| 55 RawPtr<CSSCustomIdentValue> createIdentifierValue(CSSPropertyID identifier); | 55 CSSCustomIdentValue* createIdentifierValue(CSSPropertyID identifier); |
| 56 RawPtr<CSSColorValue> createColorValue(RGBA32 rgbValue); | 56 CSSColorValue* createColorValue(RGBA32 rgbValue); |
| 57 RawPtr<CSSPrimitiveValue> createValue(double value, CSSPrimitiveValue::UnitT
ype); | 57 CSSPrimitiveValue* createValue(double value, CSSPrimitiveValue::UnitType); |
| 58 RawPtr<CSSPrimitiveValue> createValue(const Length& value, const ComputedSty
le&); | 58 CSSPrimitiveValue* createValue(const Length& value, const ComputedStyle&); |
| 59 RawPtr<CSSPrimitiveValue> createValue(const Length& value, float zoom) { ret
urn CSSPrimitiveValue::create(value, zoom); } | 59 CSSPrimitiveValue* createValue(const Length& value, float zoom) { return CSS
PrimitiveValue::create(value, zoom); } |
| 60 template<typename T> static RawPtr<CSSPrimitiveValue> createValue(T value) {
return CSSPrimitiveValue::create(value); } | 60 template<typename T> static CSSPrimitiveValue* createValue(T value) { return
CSSPrimitiveValue::create(value); } |
| 61 | 61 |
| 62 DECLARE_TRACE(); | 62 DECLARE_TRACE(); |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 CSSValuePool(); | 65 CSSValuePool(); |
| 66 | 66 |
| 67 Member<CSSInheritedValue> m_inheritedValue; | 67 Member<CSSInheritedValue> m_inheritedValue; |
| 68 Member<CSSInitialValue> m_implicitInitialValue; | 68 Member<CSSInitialValue> m_implicitInitialValue; |
| 69 Member<CSSInitialValue> m_explicitInitialValue; | 69 Member<CSSInitialValue> m_explicitInitialValue; |
| 70 Member<CSSUnsetValue> m_unsetValue; | 70 Member<CSSUnsetValue> m_unsetValue; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 90 FontFamilyValueCache m_fontFamilyValueCache; | 90 FontFamilyValueCache m_fontFamilyValueCache; |
| 91 | 91 |
| 92 friend CORE_EXPORT CSSValuePool& cssValuePool(); | 92 friend CORE_EXPORT CSSValuePool& cssValuePool(); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 CORE_EXPORT CSSValuePool& cssValuePool(); | 95 CORE_EXPORT CSSValuePool& cssValuePool(); |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif | 99 #endif |
| OLD | NEW |