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

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

Issue 2616093003: Make CSSParserContext be garbage collected. (Closed)
Patch Set: fix fuzzer compile again Created 3 years, 11 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 49a7b4d317902d079967b1e3b4ed7b8a0884aee9..bb443698a2913a0d4fb047e025b31a4be7af10a4 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITranslate.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITranslate.cpp
@@ -13,19 +13,19 @@ namespace blink {
const CSSValue* CSSPropertyAPITranslate::parseSingleValue(
CSSParserTokenRange& range,
- const CSSParserContext& context) {
+ const CSSParserContext* context) {
DCHECK(RuntimeEnabledFeatures::cssIndependentTransformPropertiesEnabled());
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