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

Unified Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 943463002: Initial implementation of font-size-adjust (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add some tests which need a rebaseline to TestExpectation Created 5 years, 10 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/core/css/LayoutStyleCSSValueMapping.cpp ('k') | Source/core/css/resolver/CSSPropertyPriority.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
index 4f8ceae0b1b6f04cb0775b25d85c895c2ef9a53c..68300c70665e606921cde5d9489b7f27b538a455 100644
--- a/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/Source/core/css/parser/CSSPropertyParser.cpp
@@ -1052,6 +1052,10 @@ bool CSSPropertyParser::parseValue(CSSPropertyID propId, bool important)
else
parsedValue = parseReflect();
break;
+ case CSSPropertyFontSizeAdjust: // none | <number>
+ ASSERT(RuntimeEnabledFeatures::cssFontSizeAdjustEnabled());
+ validPrimitive = (id == CSSValueNone) ? true : validUnit(value, FNumber | FNonNeg);
+ break;
case CSSPropertyOpacity:
validPrimitive = validUnit(value, FNumber);
break;
« no previous file with comments | « Source/core/css/LayoutStyleCSSValueMapping.cpp ('k') | Source/core/css/resolver/CSSPropertyPriority.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698