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 20 matching lines...) Expand all Loading... |
31 #include "core/css/CSSInitialValue.h" | 31 #include "core/css/CSSInitialValue.h" |
32 #include "core/css/CSSPrimitiveValue.h" | 32 #include "core/css/CSSPrimitiveValue.h" |
33 #include <wtf/HashMap.h> | 33 #include <wtf/HashMap.h> |
34 #include <wtf/RefPtr.h> | 34 #include <wtf/RefPtr.h> |
35 #include <wtf/text/AtomicStringHash.h> | 35 #include <wtf/text/AtomicStringHash.h> |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 class CSSValueList; | 39 class CSSValueList; |
40 | 40 |
41 class CSSValuePool : HeapAllocated<CSSValuePool> { | 41 class CSSValuePool : public HeapAllocated<CSSValuePool> { |
42 DECLARE_GC_INFO | 42 DECLARE_GC_INFO |
43 public: | 43 public: |
44 CSSValueList* createFontFaceValue(const AtomicString&); | 44 CSSValueList* createFontFaceValue(const AtomicString&); |
45 CSSPrimitiveValue* createFontFamilyValue(const String&); | 45 CSSPrimitiveValue* createFontFamilyValue(const String&); |
46 CSSInheritedValue* createInheritedValue() { return m_inheritedValue; } | 46 CSSInheritedValue* createInheritedValue() { return m_inheritedValue; } |
47 CSSInitialValue* createImplicitInitialValue() { return m_implicitInitialValu
e; } | 47 CSSInitialValue* createImplicitInitialValue() { return m_implicitInitialValu
e; } |
48 CSSInitialValue* createExplicitInitialValue() { return m_explicitInitialValu
e; } | 48 CSSInitialValue* createExplicitInitialValue() { return m_explicitInitialValu
e; } |
49 CSSPrimitiveValue* createIdentifierValue(int identifier); | 49 CSSPrimitiveValue* createIdentifierValue(int identifier); |
50 CSSPrimitiveValue* createColorValue(unsigned rgbValue); | 50 CSSPrimitiveValue* createColorValue(unsigned rgbValue); |
51 CSSPrimitiveValue* createValue(double value, CSSPrimitiveValue::UnitTypes); | 51 CSSPrimitiveValue* createValue(double value, CSSPrimitiveValue::UnitTypes); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 HeapHashMap<String, Member<CSSPrimitiveValue> > m_fontFamilyValueCache; | 100 HeapHashMap<String, Member<CSSPrimitiveValue> > m_fontFamilyValueCache; |
101 | 101 |
102 friend CSSValuePool& cssValuePool(); | 102 friend CSSValuePool& cssValuePool(); |
103 }; | 103 }; |
104 | 104 |
105 CSSValuePool& cssValuePool(); | 105 CSSValuePool& cssValuePool(); |
106 | 106 |
107 } | 107 } |
108 | 108 |
109 #endif | 109 #endif |
OLD | NEW |