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 14 matching lines...) Expand all Loading... |
25 #include "core/css/CSSPrimitiveValue.h" | 25 #include "core/css/CSSPrimitiveValue.h" |
26 #include "core/css/CSSProperty.h" | 26 #include "core/css/CSSProperty.h" |
27 #include "core/css/PropertySetCSSStyleDeclaration.h" | 27 #include "core/css/PropertySetCSSStyleDeclaration.h" |
28 #include "core/css/parser/CSSParserMode.h" | 28 #include "core/css/parser/CSSParserMode.h" |
29 #include "wtf/ListHashSet.h" | 29 #include "wtf/ListHashSet.h" |
30 #include "wtf/Vector.h" | 30 #include "wtf/Vector.h" |
31 #include "wtf/text/WTFString.h" | 31 #include "wtf/text/WTFString.h" |
32 | 32 |
33 namespace blink { | 33 namespace blink { |
34 | 34 |
35 class CSSRule; | |
36 class CSSStyleDeclaration; | 35 class CSSStyleDeclaration; |
37 class Element; | |
38 class ImmutableStylePropertySet; | 36 class ImmutableStylePropertySet; |
39 class KURL; | |
40 class MutableStylePropertySet; | 37 class MutableStylePropertySet; |
41 class StylePropertyShorthand; | |
42 class StyleSheetContents; | 38 class StyleSheetContents; |
43 | 39 |
44 class StylePropertySet : public RefCountedWillBeGarbageCollectedFinalized<StyleP
ropertySet> { | 40 class StylePropertySet : public RefCountedWillBeGarbageCollectedFinalized<StyleP
ropertySet> { |
45 friend class PropertyReference; | 41 friend class PropertyReference; |
46 public: | 42 public: |
47 | 43 |
48 #if ENABLE(OILPAN) | 44 #if ENABLE(OILPAN) |
49 // When oilpan is enabled override the finalize method to dispatch to the su
bclasses' | 45 // When oilpan is enabled override the finalize method to dispatch to the su
bclasses' |
50 // destructor. This can be removed once the MutableStylePropertySet's OwnPtr
is moved | 46 // destructor. This can be removed once the MutableStylePropertySet's OwnPtr
is moved |
51 // to the heap. | 47 // to the heap. |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const | 296 inline int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const |
301 { | 297 { |
302 if (m_isMutable) | 298 if (m_isMutable) |
303 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); | 299 return toMutableStylePropertySet(this)->findPropertyIndex(propertyID); |
304 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); | 300 return toImmutableStylePropertySet(this)->findPropertyIndex(propertyID); |
305 } | 301 } |
306 | 302 |
307 } // namespace blink | 303 } // namespace blink |
308 | 304 |
309 #endif // StylePropertySet_h | 305 #endif // StylePropertySet_h |
OLD | NEW |