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

Unified Diff: Source/WebCore/css/CSSProperty.h

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/CSSParser.cpp ('k') | Source/WebCore/css/CSSProperty.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/css/CSSProperty.h
===================================================================
--- Source/WebCore/css/CSSProperty.h (revision 145343)
+++ Source/WebCore/css/CSSProperty.h (working copy)
@@ -92,6 +92,48 @@
RefPtr<CSSValue> m_value;
};
+inline CSSPropertyID prefixingVariantForPropertyId(CSSPropertyID propId)
+{
+ CSSPropertyID propertyId = CSSPropertyInvalid;
+ switch (propId) {
+ case CSSPropertyTransitionDelay:
+ propertyId = CSSPropertyWebkitTransitionDelay;
+ break;
+ case CSSPropertyTransitionDuration:
+ propertyId = CSSPropertyWebkitTransitionDuration;
+ break;
+ case CSSPropertyTransitionProperty:
+ propertyId = CSSPropertyWebkitTransitionProperty;
+ break;
+ case CSSPropertyTransitionTimingFunction:
+ propertyId = CSSPropertyWebkitTransitionTimingFunction;
+ break;
+ case CSSPropertyTransition:
+ propertyId = CSSPropertyWebkitTransition;
+ break;
+ case CSSPropertyWebkitTransitionDelay:
+ propertyId = CSSPropertyTransitionDelay;
+ break;
+ case CSSPropertyWebkitTransitionDuration:
+ propertyId = CSSPropertyTransitionDuration;
+ break;
+ case CSSPropertyWebkitTransitionProperty:
+ propertyId = CSSPropertyTransitionProperty;
+ break;
+ case CSSPropertyWebkitTransitionTimingFunction:
+ propertyId = CSSPropertyTransitionTimingFunction;
+ break;
+ case CSSPropertyWebkitTransition:
+ propertyId = CSSPropertyTransition;
+ break;
+ default:
+ propertyId = propId;
+ break;
+ }
+ ASSERT(propertyId != CSSPropertyInvalid);
+ return propertyId;
+}
+
} // namespace WebCore
namespace WTF {
« no previous file with comments | « Source/WebCore/css/CSSParser.cpp ('k') | Source/WebCore/css/CSSProperty.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698