| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 PassRefPtr<CSSPrimitiveValue> createFontFamilyValue(const String&); | 46 PassRefPtr<CSSPrimitiveValue> createFontFamilyValue(const String&); |
| 47 PassRefPtr<CSSInheritedValue> createInheritedValue() { return m_inheritedVal
ue; } | 47 PassRefPtr<CSSInheritedValue> createInheritedValue() { return m_inheritedVal
ue; } |
| 48 PassRefPtr<CSSInitialValue> createImplicitInitialValue() { return m_implicit
InitialValue; } | 48 PassRefPtr<CSSInitialValue> createImplicitInitialValue() { return m_implicit
InitialValue; } |
| 49 PassRefPtr<CSSInitialValue> createExplicitInitialValue() { return m_explicit
InitialValue; } | 49 PassRefPtr<CSSInitialValue> createExplicitInitialValue() { return m_explicit
InitialValue; } |
| 50 PassRefPtr<CSSPrimitiveValue> createIdentifierValue(CSSValueID identifier); | 50 PassRefPtr<CSSPrimitiveValue> createIdentifierValue(CSSValueID identifier); |
| 51 PassRefPtr<CSSPrimitiveValue> createIdentifierValue(CSSPropertyID identifier
); | 51 PassRefPtr<CSSPrimitiveValue> createIdentifierValue(CSSPropertyID identifier
); |
| 52 PassRefPtr<CSSPrimitiveValue> createColorValue(unsigned rgbValue); | 52 PassRefPtr<CSSPrimitiveValue> createColorValue(unsigned rgbValue); |
| 53 PassRefPtr<CSSPrimitiveValue> createValue(double value, CSSPrimitiveValue::U
nitType); | 53 PassRefPtr<CSSPrimitiveValue> createValue(double value, CSSPrimitiveValue::U
nitType); |
| 54 PassRefPtr<CSSPrimitiveValue> createValue(const String& value, CSSPrimitiveV
alue::UnitType type) { return CSSPrimitiveValue::create(value, type); } | 54 PassRefPtr<CSSPrimitiveValue> createValue(const String& value, CSSPrimitiveV
alue::UnitType type) { return CSSPrimitiveValue::create(value, type); } |
| 55 PassRefPtr<CSSPrimitiveValue> createValue(const Length& value, const RenderS
tyle&); | 55 PassRefPtr<CSSPrimitiveValue> createValue(const Length& value, const RenderS
tyle&); |
| 56 PassRefPtr<CSSPrimitiveValue> createValue(const Length& value, float zoom) {
return CSSPrimitiveValue::create(value, zoom); } | 56 PassRefPtr<CSSPrimitiveValue> createValue(const Length& value) { return CSSP
rimitiveValue::create(value); } |
| 57 template<typename T> static PassRefPtr<CSSPrimitiveValue> createValue(T valu
e) { return CSSPrimitiveValue::create(value); } | 57 template<typename T> static PassRefPtr<CSSPrimitiveValue> createValue(T valu
e) { return CSSPrimitiveValue::create(value); } |
| 58 | 58 |
| 59 void trace(Visitor*); | 59 void trace(Visitor*); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 CSSValuePool(); | 62 CSSValuePool(); |
| 63 | 63 |
| 64 RefPtr<CSSInheritedValue> m_inheritedValue; | 64 RefPtr<CSSInheritedValue> m_inheritedValue; |
| 65 RefPtr<CSSInitialValue> m_implicitInitialValue; | 65 RefPtr<CSSInitialValue> m_implicitInitialValue; |
| 66 RefPtr<CSSInitialValue> m_explicitInitialValue; | 66 RefPtr<CSSInitialValue> m_explicitInitialValue; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 86 FontFamilyValueCache m_fontFamilyValueCache; | 86 FontFamilyValueCache m_fontFamilyValueCache; |
| 87 | 87 |
| 88 friend CSSValuePool& cssValuePool(); | 88 friend CSSValuePool& cssValuePool(); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 CSSValuePool& cssValuePool(); | 91 CSSValuePool& cssValuePool(); |
| 92 | 92 |
| 93 } | 93 } |
| 94 | 94 |
| 95 #endif | 95 #endif |
| OLD | NEW |