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

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

Issue 2786153004: Changed CSSParserContext argument from * to & for null safety. (Closed)
Patch Set: Updated syntax where ref is passed as pointer Created 3 years, 9 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 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 @@ namespace blink {
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 @@ const CSSValue* CSSPropertyAPIZoom::parseSingleValue(
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;
}

Powered by Google App Engine
This is Rietveld 408576698