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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPICursor.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/CSSPropertyAPICursor.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPICursor.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPICursor.cpp
index dc663be345acb62f4d01863b947722e2e52fcac8..c1b7250b7867f972b8fe248e8d32268386e6061a 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPICursor.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPICursor.cpp
@@ -15,11 +15,11 @@ namespace blink {
const CSSValue* CSSPropertyAPICursor::parseSingleValue(
CSSParserTokenRange& range,
- const CSSParserContext* context) {
- bool inQuirksMode = isQuirksModeBehavior(context->mode());
+ const CSSParserContext& context) {
+ bool inQuirksMode = isQuirksModeBehavior(context.mode());
CSSValueList* list = nullptr;
while (CSSValue* image = CSSPropertyParserHelpers::consumeImage(
- range, context,
+ range, &context,
CSSPropertyParserHelpers::ConsumeGeneratedImagePolicy::Forbid)) {
double num;
IntPoint hotSpot(-1, -1);
@@ -44,9 +44,9 @@ const CSSValue* CSSPropertyAPICursor::parseSingleValue(
CSSValueID id = range.peek().id();
if (!range.atEnd()) {
if (id == CSSValueWebkitZoomIn)
- context->count(UseCounter::PrefixedCursorZoomIn);
+ context.count(UseCounter::PrefixedCursorZoomIn);
else if (id == CSSValueWebkitZoomOut)
- context->count(UseCounter::PrefixedCursorZoomOut);
+ context.count(UseCounter::PrefixedCursorZoomOut);
}
CSSValue* cursorType = nullptr;
if (id == CSSValueHand) {

Powered by Google App Engine
This is Rietveld 408576698