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

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

Issue 2932593004: Update the snap points css properties (Closed)
Patch Set: Fix nits Created 3 years, 6 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/CSSPropertyAPIScrollSnapCoordinate.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIScrollSnapCoordinate.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIScrollSnapCoordinate.cpp
deleted file mode 100644
index 95a03eb3009d1e3397ed2c10e009453e3c3f1f88..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIScrollSnapCoordinate.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/css/properties/CSSPropertyAPIScrollSnapCoordinate.h"
-
-#include "core/css/CSSValueList.h"
-#include "core/css/CSSValuePair.h"
-#include "core/css/parser/CSSParserContext.h"
-#include "core/css/parser/CSSPropertyParserHelpers.h"
-
-// TODO(crbug.com/724912): Retire scroll-snap-coordinate
-
-class CSSParserLocalContext;
-namespace blink {
-
-using namespace CSSPropertyParserHelpers;
-
-static CSSValueList* ConsumePositionList(CSSParserTokenRange& range,
- const CSSParserContext& context) {
- CSSValueList* positions = CSSValueList::CreateCommaSeparated();
- do {
- CSSValue* position = ConsumePosition(range, context, UnitlessQuirk::kForbid,
- Optional<WebFeature>());
- if (!position)
- return nullptr;
- positions->Append(*position);
- } while (ConsumeCommaIncludingWhitespace(range));
- return positions;
-}
-
-const CSSValue* CSSPropertyAPIScrollSnapCoordinate::parseSingleValue(
- CSSParserTokenRange& range,
- const CSSParserContext& context,
- const CSSParserLocalContext&) {
- if (range.Peek().Id() == CSSValueNone)
- return ConsumeIdent(range);
- return ConsumePositionList(range, context);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698