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

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

Issue 2798333003: Reland of Changed CSSParserContext argument from * to & for null safety. (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZIndex.cpp ('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/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 a19dc0705bdbb32081c6954ec61c8ff2fd845e06..bbf86d375e3c2f1b3361c43c1798eab9f4440f09 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZoom.cpp
@@ -12,7 +12,7 @@
const CSSValue* CSSPropertyAPIZoom::parseSingleValue(
CSSParserTokenRange& range,
- const CSSParserContext* context) {
+ const CSSParserContext& context) {
const CSSParserToken& token = range.peek();
CSSValue* zoom = nullptr;
if (token.type() == IdentToken) {
@@ -32,11 +32,11 @@
toCSSPrimitiveValue(zoom)->getDoubleValue() == 1) ||
(token.type() == PercentageToken &&
toCSSPrimitiveValue(zoom)->getDoubleValue() == 100)))
- context->count(UseCounter::CSSZoomNotEqualToOne);
+ context.count(UseCounter::CSSZoomNotEqualToOne);
if (token.id() == CSSValueReset)
- context->countDeprecation(UseCounter::CSSZoomReset);
+ context.countDeprecation(UseCounter::CSSZoomReset);
if (token.id() == CSSValueDocument)
- context->countDeprecation(UseCounter::CSSZoomDocument);
+ context.countDeprecation(UseCounter::CSSZoomDocument);
}
return zoom;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/properties/CSSPropertyAPIZIndex.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698