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

Side by Side Diff: sky/engine/core/css/CSSProperty.h

Issue 760183003: Enable/Unprefix Animations & Transitions, add basic tests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: patch for landing Created 6 years 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
« no previous file with comments | « sky/engine/core/css/CSSProperties.in ('k') | sky/engine/core/css/StylePropertySerializer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 static CSSPropertyID resolveDirectionAwareProperty(CSSPropertyID, TextDirect ion); 80 static CSSPropertyID resolveDirectionAwareProperty(CSSPropertyID, TextDirect ion);
81 static bool isAffectedByAllProperty(CSSPropertyID); 81 static bool isAffectedByAllProperty(CSSPropertyID);
82 82
83 const StylePropertyMetadata& metadata() const { return m_metadata; } 83 const StylePropertyMetadata& metadata() const { return m_metadata; }
84 84
85 private: 85 private:
86 StylePropertyMetadata m_metadata; 86 StylePropertyMetadata m_metadata;
87 RefPtr<CSSValue> m_value; 87 RefPtr<CSSValue> m_value;
88 }; 88 };
89 89
90 inline CSSPropertyID prefixingVariantForPropertyId(CSSPropertyID propId)
91 {
92 if (RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled()) {
93 switch (propId) {
94 case CSSPropertyAnimation:
95 return CSSPropertyWebkitAnimation;
96 case CSSPropertyAnimationDelay:
97 return CSSPropertyWebkitAnimationDelay;
98 case CSSPropertyAnimationDirection:
99 return CSSPropertyWebkitAnimationDirection;
100 case CSSPropertyAnimationDuration:
101 return CSSPropertyWebkitAnimationDuration;
102 case CSSPropertyAnimationFillMode:
103 return CSSPropertyWebkitAnimationFillMode;
104 case CSSPropertyAnimationIterationCount:
105 return CSSPropertyWebkitAnimationIterationCount;
106 case CSSPropertyAnimationName:
107 return CSSPropertyWebkitAnimationName;
108 case CSSPropertyAnimationPlayState:
109 return CSSPropertyWebkitAnimationPlayState;
110 case CSSPropertyAnimationTimingFunction:
111 return CSSPropertyWebkitAnimationTimingFunction;
112 case CSSPropertyWebkitAnimation:
113 return CSSPropertyAnimation;
114 case CSSPropertyWebkitAnimationDelay:
115 return CSSPropertyAnimationDelay;
116 case CSSPropertyWebkitAnimationDirection:
117 return CSSPropertyAnimationDirection;
118 case CSSPropertyWebkitAnimationDuration:
119 return CSSPropertyAnimationDuration;
120 case CSSPropertyWebkitAnimationFillMode:
121 return CSSPropertyAnimationFillMode;
122 case CSSPropertyWebkitAnimationIterationCount:
123 return CSSPropertyAnimationIterationCount;
124 case CSSPropertyWebkitAnimationName:
125 return CSSPropertyAnimationName;
126 case CSSPropertyWebkitAnimationPlayState:
127 return CSSPropertyAnimationPlayState;
128 case CSSPropertyWebkitAnimationTimingFunction:
129 return CSSPropertyAnimationTimingFunction;
130 default:
131 break;
132 }
133 }
134
135 switch (propId) {
136 case CSSPropertyTransitionDelay:
137 return CSSPropertyWebkitTransitionDelay;
138 case CSSPropertyTransitionDuration:
139 return CSSPropertyWebkitTransitionDuration;
140 case CSSPropertyTransitionProperty:
141 return CSSPropertyWebkitTransitionProperty;
142 case CSSPropertyTransitionTimingFunction:
143 return CSSPropertyWebkitTransitionTimingFunction;
144 case CSSPropertyTransition:
145 return CSSPropertyWebkitTransition;
146 case CSSPropertyWebkitTransitionDelay:
147 return CSSPropertyTransitionDelay;
148 case CSSPropertyWebkitTransitionDuration:
149 return CSSPropertyTransitionDuration;
150 case CSSPropertyWebkitTransitionProperty:
151 return CSSPropertyTransitionProperty;
152 case CSSPropertyWebkitTransitionTimingFunction:
153 return CSSPropertyTransitionTimingFunction;
154 case CSSPropertyWebkitTransition:
155 return CSSPropertyTransition;
156 default:
157 return propId;
158 }
159 }
160
161 } // namespace blink 90 } // namespace blink
162 91
163 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSProperty); 92 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::CSSProperty);
164 93
165 #endif // SKY_ENGINE_CORE_CSS_CSSPROPERTY_H_ 94 #endif // SKY_ENGINE_CORE_CSS_CSSPROPERTY_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSProperties.in ('k') | sky/engine/core/css/StylePropertySerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698