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

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

Issue 2888283006: CSS: Use count position values with 3 parts (Closed)
Patch Set: rebase Created 3 years, 7 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/CSSPropertyAPIOffsetPosition.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp
index f3a59be6f4af1bd777a7f813fef79f216fb69169..6aa62145c9455ff61c744caace22936e5ad2dadc 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp
@@ -11,15 +11,17 @@
namespace blink {
+using namespace CSSPropertyParserHelpers;
+
const CSSValue* CSSPropertyAPIOffsetPosition::parseSingleValue(
CSSParserTokenRange& range,
const CSSParserContext& context,
CSSPropertyID) {
CSSValueID id = range.Peek().Id();
if (id == CSSValueAuto)
- return CSSPropertyParserHelpers::ConsumeIdent(range);
- CSSValue* value = CSSPropertyParserHelpers::ConsumePosition(
- range, context.Mode(), CSSPropertyParserHelpers::UnitlessQuirk::kForbid);
+ return ConsumeIdent(range);
+ CSSValue* value = ConsumePosition(range, context, UnitlessQuirk::kForbid,
+ Optional<UseCounter::Feature>());
// Count when we receive a valid position other than 'auto'.
if (value && value->IsValuePair())

Powered by Google App Engine
This is Rietveld 408576698