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, 2008, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 unsigned propertyCount() const; | 82 unsigned propertyCount() const; |
83 bool isEmpty() const; | 83 bool isEmpty() const; |
84 PropertyReference propertyAt(unsigned index) const { return PropertyReferenc
e(*this, index); } | 84 PropertyReference propertyAt(unsigned index) const { return PropertyReferenc
e(*this, index); } |
85 | 85 |
86 template<typename T> // CSSPropertyID or AtomicString | 86 template<typename T> // CSSPropertyID or AtomicString |
87 int findPropertyIndex(T property) const; | 87 int findPropertyIndex(T property) const; |
88 | 88 |
89 bool hasProperty(CSSPropertyID property) const { return findPropertyIndex(pr
operty) != -1; } | 89 bool hasProperty(CSSPropertyID property) const { return findPropertyIndex(pr
operty) != -1; } |
90 | 90 |
91 template<typename T> // CSSPropertyID or AtomicString | 91 template<typename T> // CSSPropertyID or AtomicString |
92 CSSValue* getPropertyCSSValue(T property) const; | 92 const CSSValue* getPropertyCSSValue(T property) const; |
93 | 93 |
94 template<typename T> // CSSPropertyID or AtomicString | 94 template<typename T> // CSSPropertyID or AtomicString |
95 String getPropertyValue(T property) const; | 95 String getPropertyValue(T property) const; |
96 | 96 |
97 template<typename T> // CSSPropertyID or AtomicString | 97 template<typename T> // CSSPropertyID or AtomicString |
98 bool propertyIsImportant(T property) const; | 98 bool propertyIsImportant(T property) const; |
99 | 99 |
100 bool shorthandIsImportant(CSSPropertyID) const; | 100 bool shorthandIsImportant(CSSPropertyID) const; |
101 bool shorthandIsImportant(AtomicString customPropertyName) const; | 101 bool shorthandIsImportant(AtomicString customPropertyName) const; |
102 | 102 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 inline int StylePropertySet::findPropertyIndex(T property) const | 286 inline int StylePropertySet::findPropertyIndex(T property) const |
287 { | 287 { |
288 if (m_isMutable) | 288 if (m_isMutable) |
289 return toMutableStylePropertySet(this)->findPropertyIndex(property); | 289 return toMutableStylePropertySet(this)->findPropertyIndex(property); |
290 return toImmutableStylePropertySet(this)->findPropertyIndex(property); | 290 return toImmutableStylePropertySet(this)->findPropertyIndex(property); |
291 } | 291 } |
292 | 292 |
293 } // namespace blink | 293 } // namespace blink |
294 | 294 |
295 #endif // StylePropertySet_h | 295 #endif // StylePropertySet_h |
OLD | NEW |