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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h

Issue 2723883005: Add registered custom property wrapping support to CSSAnimatableValueFactory (Closed)
Patch Set: Rebased Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h b/third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h
index af25e09ab73fe62903045110dffca5cfcf8d468b..1ec923dc82de9a8d2fb173ffce57325e8b1ef72e 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableUnknown.h
@@ -41,14 +41,14 @@ class AnimatableUnknown final : public AnimatableValue {
public:
~AnimatableUnknown() override {}
- static PassRefPtr<AnimatableUnknown> create(CSSValue* value) {
+ static PassRefPtr<AnimatableUnknown> create(const CSSValue* value) {
return adoptRef(new AnimatableUnknown(value));
}
static PassRefPtr<AnimatableUnknown> create(CSSValueID value) {
return adoptRef(new AnimatableUnknown(CSSIdentifierValue::create(value)));
}
- CSSValue* toCSSValue() const { return m_value; }
+ const CSSValue* toCSSValue() const { return m_value; }
CSSValueID toCSSValueID() const {
return toCSSIdentifierValue(m_value.get())->getValueID();
}
@@ -62,13 +62,11 @@ class AnimatableUnknown final : public AnimatableValue {
bool usesDefaultInterpolationWith(const AnimatableValue*) const override;
private:
- explicit AnimatableUnknown(CSSValue* value) : m_value(value) {
- DCHECK(m_value);
- }
+ explicit AnimatableUnknown(const CSSValue* value) : m_value(value) {}
AnimatableType type() const override { return TypeUnknown; }
bool equalTo(const AnimatableValue*) const override;
- const Persistent<CSSValue> m_value;
+ const Persistent<const CSSValue> m_value;
};
DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableUnknown, isUnknown());
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698