| 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 17 matching lines...) Expand all Loading... |
| 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 | 37 |
| 38 class CORE_EXPORT CSSStyleDeclaration : public NoBaseWillBeGarbageCollectedFinal
ized<CSSStyleDeclaration>, public ScriptWrappable { | 38 class CORE_EXPORT CSSStyleDeclaration : public GarbageCollectedFinalized<CSSStyl
eDeclaration>, public ScriptWrappable { |
| 39 DEFINE_WRAPPERTYPEINFO(); | 39 DEFINE_WRAPPERTYPEINFO(); |
| 40 WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); USING_FAST_MALLOC_WILL_BE_REMOVED
(CSSStyleDeclaration); | 40 WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); |
| 41 public: | 41 public: |
| 42 virtual ~CSSStyleDeclaration() { } | 42 virtual ~CSSStyleDeclaration() { } |
| 43 | 43 |
| 44 #if !ENABLE(OILPAN) | 44 #if !ENABLE(OILPAN) |
| 45 virtual void ref() = 0; | 45 virtual void ref() = 0; |
| 46 virtual void deref() = 0; | 46 virtual void deref() = 0; |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 virtual CSSRule* parentRule() const = 0; | 49 virtual CSSRule* parentRule() const = 0; |
| 50 String cssFloat() | 50 String cssFloat() |
| (...skipping 11 matching lines...) Expand all Loading... |
| 62 virtual String getPropertyValue(const String& propertyName) = 0; | 62 virtual String getPropertyValue(const String& propertyName) = 0; |
| 63 virtual String getPropertyPriority(const String& propertyName) = 0; | 63 virtual String getPropertyPriority(const String& propertyName) = 0; |
| 64 virtual String getPropertyShorthand(const String& propertyName) = 0; | 64 virtual String getPropertyShorthand(const String& propertyName) = 0; |
| 65 virtual bool isPropertyImplicit(const String& propertyName) = 0; | 65 virtual bool isPropertyImplicit(const String& propertyName) = 0; |
| 66 virtual void setProperty(const String& propertyName, const String& value, co
nst String& priority, ExceptionState&) = 0; | 66 virtual void setProperty(const String& propertyName, const String& value, co
nst String& priority, ExceptionState&) = 0; |
| 67 virtual String removeProperty(const String& propertyName, ExceptionState&) =
0; | 67 virtual String removeProperty(const String& propertyName, ExceptionState&) =
0; |
| 68 | 68 |
| 69 // CSSPropertyID versions of the CSSOM functions to support bindings and edi
ting. | 69 // CSSPropertyID versions of the CSSOM functions to support bindings and edi
ting. |
| 70 // Use the non-virtual methods in the concrete subclasses when possible. | 70 // Use the non-virtual methods in the concrete subclasses when possible. |
| 71 // 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. | 71 // 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. |
| 72 virtual PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValueInternal(CSSProp
ertyID) = 0; | 72 virtual RawPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) = 0; |
| 73 virtual String getPropertyValueInternal(CSSPropertyID) = 0; | 73 virtual String getPropertyValueInternal(CSSPropertyID) = 0; |
| 74 virtual void setPropertyInternal(CSSPropertyID, const String& propertyValue,
const String& value, bool important, ExceptionState&) = 0; | 74 virtual void setPropertyInternal(CSSPropertyID, const String& propertyValue,
const String& value, bool important, ExceptionState&) = 0; |
| 75 | 75 |
| 76 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const = 0; | 76 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const = 0; |
| 77 virtual CSSStyleSheet* parentStyleSheet() const { return 0; } | 77 virtual CSSStyleSheet* parentStyleSheet() const { return 0; } |
| 78 | 78 |
| 79 DEFINE_INLINE_VIRTUAL_TRACE() { } | 79 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 80 | 80 |
| 81 protected: | 81 protected: |
| 82 CSSStyleDeclaration() { } | 82 CSSStyleDeclaration() { } |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace blink | 85 } // namespace blink |
| 86 | 86 |
| 87 #endif // CSSStyleDeclaration_h | 87 #endif // CSSStyleDeclaration_h |
| OLD | NEW |