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 16 matching lines...) Expand all Loading... |
27 #include "wtf/Forward.h" | 27 #include "wtf/Forward.h" |
28 #include "wtf/Noncopyable.h" | 28 #include "wtf/Noncopyable.h" |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 class CSSRule; | 32 class CSSRule; |
33 class CSSStyleSheet; | 33 class CSSStyleSheet; |
34 class CSSValue; | 34 class CSSValue; |
35 class ExceptionState; | 35 class ExceptionState; |
36 class MutableStylePropertySet; | 36 class MutableStylePropertySet; |
37 class ScriptState; | |
38 | 37 |
39 class CORE_EXPORT CSSStyleDeclaration : public NoBaseWillBeGarbageCollectedFinal
ized<CSSStyleDeclaration>, public ScriptWrappable { | 38 class CORE_EXPORT CSSStyleDeclaration : public NoBaseWillBeGarbageCollectedFinal
ized<CSSStyleDeclaration>, public ScriptWrappable { |
40 DEFINE_WRAPPERTYPEINFO(); | 39 DEFINE_WRAPPERTYPEINFO(); |
41 WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); WTF_MAKE_FAST_ALLOCATED_WILL_BE_R
EMOVED(CSSStyleDeclaration); | 40 WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); WTF_MAKE_FAST_ALLOCATED_WILL_BE_R
EMOVED(CSSStyleDeclaration); |
42 public: | 41 public: |
43 virtual ~CSSStyleDeclaration() { } | 42 virtual ~CSSStyleDeclaration() { } |
44 | 43 |
45 #if !ENABLE(OILPAN) | 44 #if !ENABLE(OILPAN) |
46 virtual void ref() = 0; | 45 virtual void ref() = 0; |
47 virtual void deref() = 0; | 46 virtual void deref() = 0; |
(...skipping 15 matching lines...) Expand all Loading... |
63 // Use the non-virtual methods in the concrete subclasses when possible. | 62 // Use the non-virtual methods in the concrete subclasses when possible. |
64 // The CSSValue returned by this function should not be exposed to the web a
s it may be used by multiple documents at the same time. | 63 // The CSSValue returned by this function should not be exposed to the web a
s it may be used by multiple documents at the same time. |
65 virtual PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValueInternal(CSSProp
ertyID) = 0; | 64 virtual PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValueInternal(CSSProp
ertyID) = 0; |
66 virtual String getPropertyValueInternal(CSSPropertyID) = 0; | 65 virtual String getPropertyValueInternal(CSSPropertyID) = 0; |
67 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im
portant, ExceptionState&) = 0; | 66 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im
portant, ExceptionState&) = 0; |
68 | 67 |
69 virtual PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyProperties() con
st = 0; | 68 virtual PassRefPtrWillBeRawPtr<MutableStylePropertySet> copyProperties() con
st = 0; |
70 | 69 |
71 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const = 0; | 70 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const = 0; |
72 virtual CSSStyleSheet* parentStyleSheet() const { return 0; } | 71 virtual CSSStyleSheet* parentStyleSheet() const { return 0; } |
73 virtual bool anonymousNamedSetter(ScriptState*, const String& name, const St
ring& value, ExceptionState&); | |
74 | 72 |
75 DEFINE_INLINE_VIRTUAL_TRACE() { } | 73 DEFINE_INLINE_VIRTUAL_TRACE() { } |
76 | 74 |
77 protected: | 75 protected: |
78 CSSStyleDeclaration() { } | 76 CSSStyleDeclaration() { } |
79 }; | 77 }; |
80 | 78 |
81 } // namespace blink | 79 } // namespace blink |
82 | 80 |
83 #endif // CSSStyleDeclaration_h | 81 #endif // CSSStyleDeclaration_h |
OLD | NEW |