| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class AbstractPropertySetCSSStyleDeclaration : public CSSStyleDeclaration { | 42 class AbstractPropertySetCSSStyleDeclaration : public CSSStyleDeclaration { |
| 43 public: | 43 public: |
| 44 virtual Element* parentElement() const { return 0; } | 44 virtual Element* parentElement() const { return 0; } |
| 45 StyleSheetContents* contextStyleSheet() const; | 45 StyleSheetContents* contextStyleSheet() const; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 virtual unsigned length() const override final; | 48 virtual unsigned length() const override final; |
| 49 virtual String item(unsigned index) const override final; | 49 virtual String item(unsigned index) const override final; |
| 50 virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName)
override final; | 50 virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName)
override final; |
| 51 virtual String getPropertyValue(const String& propertyName) override final; | 51 virtual String getPropertyValue(const String& propertyName) override final; |
| 52 virtual String getPropertyPriority(const String& propertyName) override fina
l; | |
| 53 virtual String getPropertyShorthand(const String& propertyName) override fin
al; | 52 virtual String getPropertyShorthand(const String& propertyName) override fin
al; |
| 54 virtual bool isPropertyImplicit(const String& propertyName) override final; | 53 virtual bool isPropertyImplicit(const String& propertyName) override final; |
| 55 virtual void setProperty(const String& propertyName, const String& value, co
nst String& priority, ExceptionState&) override final; | 54 virtual void setProperty(const String& propertyName, const String& value, co
nst String& priority, ExceptionState&) override final; |
| 56 virtual String removeProperty(const String& propertyName, ExceptionState&) o
verride final; | 55 virtual String removeProperty(const String& propertyName, ExceptionState&) o
verride final; |
| 57 virtual String cssText() const override final; | 56 virtual String cssText() const override final; |
| 58 virtual void setCSSText(const String&, ExceptionState&) override final; | 57 virtual void setCSSText(const String&, ExceptionState&) override final; |
| 59 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) over
ride final; | 58 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) over
ride final; |
| 60 virtual String getPropertyValueInternal(CSSPropertyID) override final; | 59 virtual String getPropertyValueInternal(CSSPropertyID) override final; |
| 61 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im
portant, ExceptionState&) override final; | 60 virtual void setPropertyInternal(CSSPropertyID, const String& value, Excepti
onState&) override final; |
| 62 | 61 |
| 63 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const overri
de final; | 62 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const overri
de final; |
| 64 virtual PassRefPtr<MutableStylePropertySet> copyProperties() const override
final; | 63 virtual PassRefPtr<MutableStylePropertySet> copyProperties() const override
final; |
| 65 | 64 |
| 66 CSSValue* cloneAndCacheForCSSOM(CSSValue*); | 65 CSSValue* cloneAndCacheForCSSOM(CSSValue*); |
| 67 | 66 |
| 68 protected: | 67 protected: |
| 69 enum MutationType { NoChanges, PropertyChanged }; | 68 enum MutationType { NoChanges, PropertyChanged }; |
| 70 virtual void willMutate() { } | 69 virtual void willMutate() { } |
| 71 virtual void didMutate(MutationType) { } | 70 virtual void didMutate(MutationType) { } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 virtual Element* parentElement() const override { return m_parentElement; } | 106 virtual Element* parentElement() const override { return m_parentElement; } |
| 108 | 107 |
| 109 virtual void didMutate(MutationType) override; | 108 virtual void didMutate(MutationType) override; |
| 110 | 109 |
| 111 RawPtr<Element> m_parentElement; | 110 RawPtr<Element> m_parentElement; |
| 112 }; | 111 }; |
| 113 | 112 |
| 114 } // namespace blink | 113 } // namespace blink |
| 115 | 114 |
| 116 #endif // SKY_ENGINE_CORE_CSS_PROPERTYSETCSSSTYLEDECLARATION_H_ | 115 #endif // SKY_ENGINE_CORE_CSS_PROPERTYSETCSSSTYLEDECLARATION_H_ |
| OLD | NEW |