| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 , m_arraySize(std::min(immutableArraySize, unsigned(MaxArraySize))) | 141 , m_arraySize(std::min(immutableArraySize, unsigned(MaxArraySize))) |
| 142 { } | 142 { } |
| 143 | 143 |
| 144 unsigned m_cssParserMode : 3; | 144 unsigned m_cssParserMode : 3; |
| 145 mutable unsigned m_isMutable : 1; | 145 mutable unsigned m_isMutable : 1; |
| 146 unsigned m_arraySize : 28; | 146 unsigned m_arraySize : 28; |
| 147 | 147 |
| 148 friend class PropertySetCSSStyleDeclaration; | 148 friend class PropertySetCSSStyleDeclaration; |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 WILL_BE_EAGERLY_TRACED(StylePropertySet); |
| 152 |
| 151 class ImmutableStylePropertySet : public StylePropertySet { | 153 class ImmutableStylePropertySet : public StylePropertySet { |
| 152 public: | 154 public: |
| 153 ~ImmutableStylePropertySet(); | 155 ~ImmutableStylePropertySet(); |
| 154 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> create(const CSSPro
perty* properties, unsigned count, CSSParserMode); | 156 static PassRefPtrWillBeRawPtr<ImmutableStylePropertySet> create(const CSSPro
perty* properties, unsigned count, CSSParserMode); |
| 155 | 157 |
| 156 unsigned propertyCount() const { return m_arraySize; } | 158 unsigned propertyCount() const { return m_arraySize; } |
| 157 | 159 |
| 158 const RawPtrWillBeMember<CSSValue>* valueArray() const; | 160 const RawPtrWillBeMember<CSSValue>* valueArray() const; |
| 159 const StylePropertyMetadata* metadataArray() const; | 161 const StylePropertyMetadata* metadataArray() const; |
| 160 int findPropertyIndex(CSSPropertyID) const; | 162 int findPropertyIndex(CSSPropertyID) const; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const | 297 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const |
| 296 { | 298 { |
| 297 if (m_isMutable) | 299 if (m_isMutable) |
| 298 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); | 300 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); |
| 299 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); | 301 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); |
| 300 } | 302 } |
| 301 | 303 |
| 302 } // namespace blink | 304 } // namespace blink |
| 303 | 305 |
| 304 #endif // StylePropertySet_h | 306 #endif // StylePropertySet_h |
| OLD | NEW |