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

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

Issue 2801893003: Revert 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/CSSPropertyAPITextIndent.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextIndent.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextIndent.cpp
index e586cbb39481a96e0512d4ed1ad6e4aa58bf9a29..2935c41535dec9fcdd0859eb0dbc415eebab1aa2 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextIndent.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextIndent.cpp
@@ -13,7 +13,7 @@
const CSSValue* CSSPropertyAPITextIndent::parseSingleValue(
CSSParserTokenRange& range,
- const CSSParserContext& context) {
+ const CSSParserContext* context) {
// [ <length> | <percentage> ] && hanging? && each-line?
// Keywords only allowed when css3Text is enabled.
CSSValueList* list = CSSValueList::createSpaceSeparated();
@@ -26,7 +26,7 @@
if (!hasLengthOrPercentage) {
if (CSSValue* textIndent =
CSSPropertyParserHelpers::consumeLengthOrPercent(
- range, context.mode(), ValueRangeAll,
+ range, context->mode(), ValueRangeAll,
CSSPropertyParserHelpers::UnitlessQuirk::Allow)) {
list->append(*textIndent);
hasLengthOrPercentage = true;

Powered by Google App Engine
This is Rietveld 408576698