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 13 matching lines...) Expand all Loading... |
24 #include "core/CSSPropertyNames.h" | 24 #include "core/CSSPropertyNames.h" |
25 #include "core/CoreExport.h" | 25 #include "core/CoreExport.h" |
26 #include "core/css/CSSPrimitiveValue.h" | 26 #include "core/css/CSSPrimitiveValue.h" |
27 #include "core/css/CSSProperty.h" | 27 #include "core/css/CSSProperty.h" |
28 #include "core/css/PropertySetCSSStyleDeclaration.h" | 28 #include "core/css/PropertySetCSSStyleDeclaration.h" |
29 #include "core/css/parser/CSSParserMode.h" | 29 #include "core/css/parser/CSSParserMode.h" |
30 #include "wtf/ListHashSet.h" | 30 #include "wtf/ListHashSet.h" |
31 #include "wtf/Noncopyable.h" | 31 #include "wtf/Noncopyable.h" |
32 #include "wtf/Vector.h" | 32 #include "wtf/Vector.h" |
33 #include "wtf/text/WTFString.h" | 33 #include "wtf/text/WTFString.h" |
| 34 #include <algorithm> |
34 | 35 |
35 namespace blink { | 36 namespace blink { |
36 | 37 |
37 class CSSStyleDeclaration; | 38 class CSSStyleDeclaration; |
38 class ImmutableStylePropertySet; | 39 class ImmutableStylePropertySet; |
39 class MutableStylePropertySet; | 40 class MutableStylePropertySet; |
40 class StyleSheetContents; | 41 class StyleSheetContents; |
41 | 42 |
42 class CORE_EXPORT StylePropertySet : public RefCountedWillBeGarbageCollectedFina
lized<StylePropertySet> { | 43 class CORE_EXPORT StylePropertySet : public RefCountedWillBeGarbageCollectedFina
lized<StylePropertySet> { |
43 WTF_MAKE_NONCOPYABLE(StylePropertySet); | 44 WTF_MAKE_NONCOPYABLE(StylePropertySet); |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 inline int StylePropertySet::findPropertyIndex(T property) const | 313 inline int StylePropertySet::findPropertyIndex(T property) const |
313 { | 314 { |
314 if (m_isMutable) | 315 if (m_isMutable) |
315 return toMutableStylePropertySet(this)->findPropertyIndex(property); | 316 return toMutableStylePropertySet(this)->findPropertyIndex(property); |
316 return toImmutableStylePropertySet(this)->findPropertyIndex(property); | 317 return toImmutableStylePropertySet(this)->findPropertyIndex(property); |
317 } | 318 } |
318 | 319 |
319 } // namespace blink | 320 } // namespace blink |
320 | 321 |
321 #endif // StylePropertySet_h | 322 #endif // StylePropertySet_h |
OLD | NEW |