| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef KeyframeStyleRuleCSSStyleDeclaration_h | 5 #ifndef KeyframeStyleRuleCSSStyleDeclaration_h |
| 6 #define KeyframeStyleRuleCSSStyleDeclaration_h | 6 #define KeyframeStyleRuleCSSStyleDeclaration_h |
| 7 | 7 |
| 8 #include "core/css/PropertySetCSSStyleDeclaration.h" | 8 #include "core/css/PropertySetCSSStyleDeclaration.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class CSSKeyframeRule; | 12 class CSSKeyframeRule; |
| 13 | 13 |
| 14 class KeyframeStyleRuleCSSStyleDeclaration final | 14 class KeyframeStyleRuleCSSStyleDeclaration final |
| 15 : public StyleRuleCSSStyleDeclaration { | 15 : public StyleRuleCSSStyleDeclaration { |
| 16 public: | 16 public: |
| 17 static KeyframeStyleRuleCSSStyleDeclaration* create( | 17 static KeyframeStyleRuleCSSStyleDeclaration* create( |
| 18 MutableStylePropertySet& propertySet, | 18 MutableStylePropertySet& propertySet, |
| 19 CSSKeyframeRule* parentRule) { | 19 CSSKeyframeRule* parentRule) { |
| 20 return new KeyframeStyleRuleCSSStyleDeclaration(propertySet, parentRule); | 20 return new KeyframeStyleRuleCSSStyleDeclaration(propertySet, parentRule); |
| 21 } | 21 } |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 KeyframeStyleRuleCSSStyleDeclaration(MutableStylePropertySet&, | 24 KeyframeStyleRuleCSSStyleDeclaration(MutableStylePropertySet&, |
| 25 CSSKeyframeRule*); | 25 CSSKeyframeRule*); |
| 26 | 26 |
| 27 void didMutate(MutationType) override; | 27 void didMutate(MutationType) override; |
| 28 bool isKeyframeStyle() const final { return true; } |
| 28 }; | 29 }; |
| 29 | 30 |
| 30 } // namespace blink | 31 } // namespace blink |
| 31 | 32 |
| 32 #endif | 33 #endif |
| OLD | NEW |