Index: Source/core/css/StylePropertyShorthandCustom.cpp |
diff --git a/Source/core/css/StylePropertyShorthandCustom.cpp b/Source/core/css/StylePropertyShorthandCustom.cpp |
index b157746c8b99736ec302206f380d2deb93dc3e79..1cbc71ccb617e8192a22316ac68091f655a5d0c2 100644 |
--- a/Source/core/css/StylePropertyShorthandCustom.cpp |
+++ b/Source/core/css/StylePropertyShorthandCustom.cpp |
@@ -113,6 +113,14 @@ bool isExpandedShorthand(CSSPropertyID id) |
return shorthandForProperty(id).length(); |
} |
+bool isExpandedShorthandForAll(CSSPropertyID id) |
+{ |
+ if (id == CSSPropertyFont || id == CSSPropertyWidth || id == CSSPropertyMarker || id == CSSPropertyHeight) |
esprehn
2014/05/30 00:59:22
Can you link to the spec in a comment? This is a r
tasak
2014/06/04 09:37:41
I found some mistakes in the condition. We don't n
|
+ return true; |
+ |
+ return shorthandForProperty(id).length(); |
+} |
+ |
unsigned indexOfShorthandForLonghand(CSSPropertyID shorthandID, const Vector<StylePropertyShorthand, 4>& shorthands) |
{ |
for (unsigned i = 0; i < shorthands.size(); ++i) { |