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

Unified Diff: third_party/WebKit/Source/core/css/StylePropertySerializer.cpp

Issue 2494963003: Serialize the text-decoration shorthand (Closed)
Patch Set: Removed spurious newline Created 4 years, 1 month 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 | « third_party/WebKit/LayoutTests/inspector/console/console-format-style-whitelist-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
diff --git a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
index 2c59dc31127b83c85e862b9936a5b66119ffe816..c16a818706da9ac4c69ff17cbf426756a5a096b0 100644
--- a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
+++ b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
@@ -337,6 +337,7 @@ static bool allowInitialInShorthand(CSSPropertyID propertyID) {
case CSSPropertyOffset:
case CSSPropertyWebkitMarginCollapse:
case CSSPropertyListStyle:
+ case CSSPropertyTextDecoration:
case CSSPropertyWebkitTextEmphasis:
case CSSPropertyWebkitTextStroke:
return true;
@@ -489,6 +490,8 @@ String StylePropertySerializer::getPropertyValue(
return getCommonValue(overflowShorthand());
case CSSPropertyPadding:
return get4Values(paddingShorthand());
+ case CSSPropertyTextDecoration:
+ return getShorthandValue(textDecorationShorthand());
case CSSPropertyTransition:
return getLayeredShorthandValue(transitionShorthand());
case CSSPropertyListStyle:
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/console/console-format-style-whitelist-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698