diff options
Diffstat (limited to 'Source/WebCore/css/CSSStyleDeclaration.h')
| -rw-r--r-- | Source/WebCore/css/CSSStyleDeclaration.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/WebCore/css/CSSStyleDeclaration.h b/Source/WebCore/css/CSSStyleDeclaration.h index c5cf90b42..48fff2aa8 100644 --- a/Source/WebCore/css/CSSStyleDeclaration.h +++ b/Source/WebCore/css/CSSStyleDeclaration.h @@ -31,8 +31,8 @@ class CSSProperty; class CSSRule; class CSSStyleSheet; class CSSValue; -class MutableStylePropertySet; -class StylePropertySet; +class MutableStyleProperties; +class StyleProperties; class StyledElement; typedef int ExceptionCode; @@ -45,12 +45,13 @@ public: virtual void ref() = 0; virtual void deref() = 0; + virtual StyledElement* parentElement() const { return nullptr; } virtual CSSRule* parentRule() const = 0; virtual String cssText() const = 0; virtual void setCssText(const String&, ExceptionCode&) = 0; virtual unsigned length() const = 0; virtual String item(unsigned index) const = 0; - virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) = 0; + virtual RefPtr<CSSValue> getPropertyCSSValue(const String& propertyName) = 0; virtual String getPropertyValue(const String& propertyName) = 0; virtual String getPropertyPriority(const String& propertyName) = 0; virtual String getPropertyShorthand(const String& propertyName) = 0; @@ -61,11 +62,11 @@ public: // CSSPropertyID versions of the CSSOM functions to support bindings and editing. // Use the non-virtual methods in the concrete subclasses when possible. // The CSSValue returned by this function should not be exposed to the web as it may be used by multiple documents at the same time. - virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) = 0; + virtual RefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) = 0; virtual String getPropertyValueInternal(CSSPropertyID) = 0; - virtual void setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&) = 0; + virtual bool setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&) = 0; - virtual PassRefPtr<MutableStylePropertySet> copyProperties() const = 0; + virtual Ref<MutableStyleProperties> copyProperties() const = 0; virtual CSSStyleSheet* parentStyleSheet() const { return 0; } |
