OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. | 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 CSSPropertyID shorthandID() const { return static_cast<CSSPropertyID>(m_meta
data.m_shorthandID); } | 72 CSSPropertyID shorthandID() const { return static_cast<CSSPropertyID>(m_meta
data.m_shorthandID); } |
73 bool isImportant() const { return m_metadata.m_important; } | 73 bool isImportant() const { return m_metadata.m_important; } |
74 | 74 |
75 CSSValue* value() const { return m_value.get(); } | 75 CSSValue* value() const { return m_value.get(); } |
76 | 76 |
77 void wrapValueInCommaSeparatedList(); | 77 void wrapValueInCommaSeparatedList(); |
78 | 78 |
79 static CSSPropertyID resolveDirectionAwareProperty(CSSPropertyID, TextDirect
ion, WritingMode); | 79 static CSSPropertyID resolveDirectionAwareProperty(CSSPropertyID, TextDirect
ion, WritingMode); |
80 static bool isInheritedProperty(CSSPropertyID); | 80 static bool isInheritedProperty(CSSPropertyID); |
81 | 81 |
82 void reportMemoryUsage(MemoryObjectInfo*) const; | |
83 | |
84 StylePropertyMetadata metadata() const { return m_metadata; } | 82 StylePropertyMetadata metadata() const { return m_metadata; } |
85 | 83 |
86 private: | 84 private: |
87 StylePropertyMetadata m_metadata; | 85 StylePropertyMetadata m_metadata; |
88 RefPtr<CSSValue> m_value; | 86 RefPtr<CSSValue> m_value; |
89 }; | 87 }; |
90 | 88 |
91 inline CSSPropertyID prefixingVariantForPropertyId(CSSPropertyID propId) | 89 inline CSSPropertyID prefixingVariantForPropertyId(CSSPropertyID propId) |
92 { | 90 { |
93 CSSPropertyID propertyId = CSSPropertyInvalid; | 91 CSSPropertyID propertyId = CSSPropertyInvalid; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 } // namespace WebCore | 131 } // namespace WebCore |
134 | 132 |
135 namespace WTF { | 133 namespace WTF { |
136 template <> struct VectorTraits<WebCore::CSSProperty> : VectorTraitsBase<false,
WebCore::CSSProperty> { | 134 template <> struct VectorTraits<WebCore::CSSProperty> : VectorTraitsBase<false,
WebCore::CSSProperty> { |
137 static const bool canInitializeWithMemset = true; | 135 static const bool canInitializeWithMemset = true; |
138 static const bool canMoveWithMemcpy = true; | 136 static const bool canMoveWithMemcpy = true; |
139 }; | 137 }; |
140 } | 138 } |
141 | 139 |
142 #endif // CSSProperty_h | 140 #endif // CSSProperty_h |
OLD | NEW |