| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bool important, | 72 bool important, |
| 73 ExceptionState&) final; | 73 ExceptionState&) final; |
| 74 | 74 |
| 75 bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const final; | 75 bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const final; |
| 76 | 76 |
| 77 protected: | 77 protected: |
| 78 enum MutationType { NoChanges, PropertyChanged }; | 78 enum MutationType { NoChanges, PropertyChanged }; |
| 79 virtual void willMutate() {} | 79 virtual void willMutate() {} |
| 80 virtual void didMutate(MutationType) {} | 80 virtual void didMutate(MutationType) {} |
| 81 virtual MutableStylePropertySet& propertySet() const = 0; | 81 virtual MutableStylePropertySet& propertySet() const = 0; |
| 82 virtual bool isKeyframeStyle() const { return false; } |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 class PropertySetCSSStyleDeclaration | 85 class PropertySetCSSStyleDeclaration |
| 85 : public AbstractPropertySetCSSStyleDeclaration { | 86 : public AbstractPropertySetCSSStyleDeclaration { |
| 86 public: | 87 public: |
| 87 PropertySetCSSStyleDeclaration(MutableStylePropertySet& propertySet) | 88 PropertySetCSSStyleDeclaration(MutableStylePropertySet& propertySet) |
| 88 : m_propertySet(&propertySet) {} | 89 : m_propertySet(&propertySet) {} |
| 89 | 90 |
| 90 DECLARE_VIRTUAL_TRACE(); | 91 DECLARE_VIRTUAL_TRACE(); |
| 91 | 92 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 Element* parentElement() const override { return m_parentElement; } | 139 Element* parentElement() const override { return m_parentElement; } |
| 139 | 140 |
| 140 void didMutate(MutationType) override; | 141 void didMutate(MutationType) override; |
| 141 | 142 |
| 142 Member<Element> m_parentElement; | 143 Member<Element> m_parentElement; |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 } // namespace blink | 146 } // namespace blink |
| 146 | 147 |
| 147 #endif | 148 #endif |
| OLD | NEW |