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

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

Issue 1285263005: Add use counter for prefixed intrinsic size keywords (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | « no previous file | Source/core/frame/UseCounter.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 bf6ae705ab3d0d4eafd47a67cdc7bfefe7e9422b..a2aa240364015e2f9912db725cd81844922506c8 100644
--- a/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/Source/core/css/parser/CSSPropertyParser.cpp
@@ -375,6 +375,14 @@ bool CSSPropertyParser::validWidthOrHeight(CSSParserValue* value, Units unitless
m_context.useCounter()->count(UseCounter::LegacyCSSValueIntrinsic);
else if (value->id == CSSValueMinIntrinsic)
m_context.useCounter()->count(UseCounter::LegacyCSSValueMinIntrinsic);
+ else if (value->id == CSSValueWebkitMinContent)
+ m_context.useCounter()->count(UseCounter::CSSValuePrefixedMinContent);
+ else if (value->id == CSSValueWebkitMaxContent)
+ m_context.useCounter()->count(UseCounter::CSSValuePrefixedMaxContent);
+ else if (value->id == CSSValueWebkitFillAvailable)
+ m_context.useCounter()->count(UseCounter::CSSValuePrefixedFillAvailable);
+ else if (value->id == CSSValueWebkitFitContent)
+ m_context.useCounter()->count(UseCounter::CSSValuePrefixedFitContent);
}
return true;
}
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698