| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 PassRefPtr<MutableStylePropertySet> mutableCopy() const; | 102 PassRefPtr<MutableStylePropertySet> mutableCopy() const; |
| 103 PassRefPtr<ImmutableStylePropertySet> immutableCopyIfNeeded() const; | 103 PassRefPtr<ImmutableStylePropertySet> immutableCopyIfNeeded() const; |
| 104 | 104 |
| 105 PassRefPtr<MutableStylePropertySet> copyPropertiesInSet(const Vector<CSSProp
ertyID>&) const; | 105 PassRefPtr<MutableStylePropertySet> copyPropertiesInSet(const Vector<CSSProp
ertyID>&) const; |
| 106 | 106 |
| 107 String asText() const; | 107 String asText() const; |
| 108 | 108 |
| 109 bool isMutable() const { return m_isMutable; } | 109 bool isMutable() const { return m_isMutable; } |
| 110 | 110 |
| 111 bool hasFailedOrCanceledSubresources() const; | |
| 112 | |
| 113 static unsigned averageSizeInBytes(); | 111 static unsigned averageSizeInBytes(); |
| 114 | 112 |
| 115 #ifndef NDEBUG | 113 #ifndef NDEBUG |
| 116 void showStyle(); | 114 void showStyle(); |
| 117 #endif | 115 #endif |
| 118 | 116 |
| 119 bool propertyMatches(CSSPropertyID, const CSSValue*) const; | 117 bool propertyMatches(CSSPropertyID, const CSSValue*) const; |
| 120 | 118 |
| 121 protected: | 119 protected: |
| 122 | 120 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const | 269 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const |
| 272 { | 270 { |
| 273 if (m_isMutable) | 271 if (m_isMutable) |
| 274 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); | 272 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); |
| 275 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); | 273 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); |
| 276 } | 274 } |
| 277 | 275 |
| 278 } // namespace blink | 276 } // namespace blink |
| 279 | 277 |
| 280 #endif // SKY_ENGINE_CORE_CSS_STYLEPROPERTYSET_H_ | 278 #endif // SKY_ENGINE_CORE_CSS_STYLEPROPERTYSET_H_ |
| OLD | NEW |