Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h

Issue 2323633002: Implement animation tainted custom property values (Closed)
Patch Set: Rebased Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698