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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPITranslate.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
Index: third_party/WebKit/Source/core/css/properties/CSSPropertyAPITranslate.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITranslate.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITranslate.cpp
index 91c93acb292fd99c3929996f67a6aae4021587f3..a96df4f8e5878adbc481480fa9c8c2c3ff84dae8 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITranslate.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITranslate.cpp
@@ -13,23 +13,23 @@
const CSSValue* CSSPropertyAPITranslate::parseSingleValue(
CSSParserTokenRange& range,
- const CSSParserContext* context) {
+ const CSSParserContext& context) {
DCHECK(RuntimeEnabledFeatures::cssIndependentTransformPropertiesEnabled());
CSSValueID id = range.peek().id();
if (id == CSSValueNone)
return CSSPropertyParserHelpers::consumeIdent(range);
CSSValue* translate = CSSPropertyParserHelpers::consumeLengthOrPercent(
- range, context->mode(), ValueRangeAll);
+ range, context.mode(), ValueRangeAll);
if (!translate)
return nullptr;
CSSValueList* list = CSSValueList::createSpaceSeparated();
list->append(*translate);
translate = CSSPropertyParserHelpers::consumeLengthOrPercent(
- range, context->mode(), ValueRangeAll);
+ range, context.mode(), ValueRangeAll);
if (translate) {
list->append(*translate);
- translate = CSSPropertyParserHelpers::consumeLength(range, context->mode(),
+ translate = CSSPropertyParserHelpers::consumeLength(range, context.mode(),
ValueRangeAll);
if (translate)
list->append(*translate);

Powered by Google App Engine
This is Rietveld 408576698