| 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
|
|
|