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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp

Issue 2821843002: Delete deprecated properties zoom:reset and zoom:document. (Closed)
Patch Set: rebase-update Created 3 years, 8 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
Index: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp
index a1abb7e8f5b9fe0992e0a7ea262626a4aa3bfb81..2d94b6fbfa07ad8bdcdaf47110bfe76489107ec7 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp
@@ -17,8 +17,7 @@ const CSSValue* CSSPropertyAPIZoom::parseSingleValue(
const CSSParserToken& token = range.Peek();
CSSValue* zoom = nullptr;
if (token.GetType() == kIdentToken) {
- zoom = CSSPropertyParserHelpers::ConsumeIdent<CSSValueNormal, CSSValueReset,
- CSSValueDocument>(range);
+ zoom = CSSPropertyParserHelpers::ConsumeIdent<CSSValueNormal>(range);
} else {
zoom =
CSSPropertyParserHelpers::ConsumePercent(range, kValueRangeNonNegative);
@@ -34,10 +33,6 @@ const CSSValue* CSSPropertyAPIZoom::parseSingleValue(
(token.GetType() == kPercentageToken &&
ToCSSPrimitiveValue(zoom)->GetDoubleValue() == 100)))
context.Count(UseCounter::kCSSZoomNotEqualToOne);
- if (token.Id() == CSSValueReset)
- context.CountDeprecation(UseCounter::kCSSZoomReset);
- if (token.Id() == CSSValueDocument)
- context.CountDeprecation(UseCounter::kCSSZoomDocument);
}
return zoom;
}

Powered by Google App Engine
This is Rietveld 408576698