| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 { | 63 { |
| 64 } | 64 } |
| 65 | 65 |
| 66 CSSPropertyID id() const { return static_cast<CSSPropertyID>(propertyMet
adata().m_propertyID); } | 66 CSSPropertyID id() const { return static_cast<CSSPropertyID>(propertyMet
adata().m_propertyID); } |
| 67 CSSPropertyID shorthandID() const { return propertyMetadata().shorthandI
D(); } | 67 CSSPropertyID shorthandID() const { return propertyMetadata().shorthandI
D(); } |
| 68 | 68 |
| 69 bool isImportant() const { return propertyMetadata().m_important; } | 69 bool isImportant() const { return propertyMetadata().m_important; } |
| 70 bool isInherited() const { return propertyMetadata().m_inherited; } | 70 bool isInherited() const { return propertyMetadata().m_inherited; } |
| 71 bool isImplicit() const { return propertyMetadata().m_implicit; } | 71 bool isImplicit() const { return propertyMetadata().m_implicit; } |
| 72 | 72 |
| 73 String cssName() const; | |
| 74 String cssText() const; | |
| 75 | |
| 76 const CSSValue* value() const { return propertyValue(); } | 73 const CSSValue* value() const { return propertyValue(); } |
| 77 // FIXME: We should try to remove this mutable overload. | 74 // FIXME: We should try to remove this mutable overload. |
| 78 CSSValue* value() { return const_cast<CSSValue*>(propertyValue()); } | 75 CSSValue* value() { return const_cast<CSSValue*>(propertyValue()); } |
| 79 | 76 |
| 80 // FIXME: Remove this. | 77 // FIXME: Remove this. |
| 81 CSSProperty toCSSProperty() const { return CSSProperty(propertyMetadata(
), const_cast<CSSValue*>(propertyValue())); } | 78 CSSProperty toCSSProperty() const { return CSSProperty(propertyMetadata(
), const_cast<CSSValue*>(propertyValue())); } |
| 82 | 79 |
| 83 const StylePropertyMetadata& propertyMetadata() const; | 80 const StylePropertyMetadata& propertyMetadata() const; |
| 84 | 81 |
| 85 private: | 82 private: |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const | 293 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const |
| 297 { | 294 { |
| 298 if (m_isMutable) | 295 if (m_isMutable) |
| 299 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); | 296 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); |
| 300 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); | 297 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); |
| 301 } | 298 } |
| 302 | 299 |
| 303 } // namespace blink | 300 } // namespace blink |
| 304 | 301 |
| 305 #endif // StylePropertySet_h | 302 #endif // StylePropertySet_h |
| OLD | NEW |