| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual unsigned length() const override final; | 51 virtual unsigned length() const override final; |
| 52 virtual String item(unsigned index) const override final; | 52 virtual String item(unsigned index) const override final; |
| 53 virtual String getPropertyValue(const String& propertyName) override final; | 53 virtual String getPropertyValue(const String& propertyName) override final; |
| 54 virtual String getPropertyPriority(const String& propertyName) override fina
l; | 54 virtual String getPropertyPriority(const String& propertyName) override fina
l; |
| 55 virtual String getPropertyShorthand(const String& propertyName) override fin
al; | 55 virtual String getPropertyShorthand(const String& propertyName) override fin
al; |
| 56 virtual bool isPropertyImplicit(const String& propertyName) override final; | 56 virtual bool isPropertyImplicit(const String& propertyName) override final; |
| 57 virtual void setProperty(const String& propertyName, const String& value, co
nst String& priority, ExceptionState&) override final; | 57 virtual void setProperty(const String& propertyName, const String& value, co
nst String& priority, ExceptionState&) override final; |
| 58 virtual String removeProperty(const String& propertyName, ExceptionState&) o
verride final; | 58 virtual String removeProperty(const String& propertyName, ExceptionState&) o
verride final; |
| 59 virtual String cssText() const override final; | 59 virtual String cssText() const override final; |
| 60 virtual void setCSSText(const String&, ExceptionState&) override final; | 60 virtual void setCSSText(const String&, ExceptionState&) override final; |
| 61 virtual PassRefPtrWillBeRawPtr<CSSValue> getPropertyCSSValueInternal(CSSProp
ertyID) override final; | 61 virtual NullableCSSValue getPropertyCSSValueInternal(CSSPropertyID) override
final; |
| 62 virtual String getPropertyValueInternal(CSSPropertyID) override final; | 62 virtual String getPropertyValueInternal(CSSPropertyID) override final; |
| 63 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im
portant, ExceptionState&) override final; | 63 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im
portant, ExceptionState&) override final; |
| 64 | 64 |
| 65 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const overri
de final; | 65 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue) const overrid
e final; |
| 66 | 66 |
| 67 protected: | 67 protected: |
| 68 enum MutationType { NoChanges, PropertyChanged }; | 68 enum MutationType { NoChanges, PropertyChanged }; |
| 69 virtual void willMutate() { } | 69 virtual void willMutate() { } |
| 70 virtual void didMutate(MutationType) { } | 70 virtual void didMutate(MutationType) { } |
| 71 virtual MutableStylePropertySet& propertySet() const = 0; | 71 virtual MutableStylePropertySet& propertySet() const = 0; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 class PropertySetCSSStyleDeclaration : public AbstractPropertySetCSSStyleDeclara
tion { | 74 class PropertySetCSSStyleDeclaration : public AbstractPropertySetCSSStyleDeclara
tion { |
| 75 public: | 75 public: |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 virtual Element* parentElement() const override { return m_parentElement; } | 144 virtual Element* parentElement() const override { return m_parentElement; } |
| 145 | 145 |
| 146 virtual void didMutate(MutationType) override; | 146 virtual void didMutate(MutationType) override; |
| 147 | 147 |
| 148 RawPtrWillBeMember<Element> m_parentElement; | 148 RawPtrWillBeMember<Element> m_parentElement; |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| 153 #endif | 153 #endif |
| OLD | NEW |