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

Unified Diff: Source/WebCore/css/StylePropertyShorthand.cpp

Issue 12470005: Merge 144626 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 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 | « Source/WebCore/css/StylePropertyShorthand.h ('k') | Source/WebCore/css/StyleResolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/css/StylePropertyShorthand.cpp
===================================================================
--- Source/WebCore/css/StylePropertyShorthand.cpp (revision 145343)
+++ Source/WebCore/css/StylePropertyShorthand.cpp (working copy)
@@ -246,6 +246,18 @@
return paddingLonghands;
}
+const StylePropertyShorthand& transitionShorthand()
+{
+ static const CSSPropertyID transitionProperties[] = {
+ CSSPropertyTransitionProperty,
+ CSSPropertyTransitionDuration,
+ CSSPropertyTransitionTimingFunction,
+ CSSPropertyTransitionDelay
+ };
+ DEFINE_STATIC_LOCAL(StylePropertyShorthand, transitionLonghands, (transitionProperties, WTF_ARRAY_LENGTH(transitionProperties)));
+ return transitionLonghands;
+}
+
const StylePropertyShorthand& webkitAnimationShorthand()
{
static const CSSPropertyID animationProperties[] = {
@@ -493,6 +505,8 @@
return overflowShorthand();
case CSSPropertyPadding:
return paddingShorthand();
+ case CSSPropertyTransition:
+ return transitionShorthand();
case CSSPropertyWebkitAnimation:
return webkitAnimationShorthand();
case CSSPropertyWebkitBorderAfter:
« no previous file with comments | « Source/WebCore/css/StylePropertyShorthand.h ('k') | Source/WebCore/css/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698