| Index: third_party/WebKit/Source/core/css/cssom/KeywordValue.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/cssom/KeywordValue.cpp b/third_party/WebKit/Source/core/css/cssom/KeywordValue.cpp
|
| deleted file mode 100644
|
| index bb3634cbb7a420f134e94db784ec8c96e8c21521..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/core/css/cssom/KeywordValue.cpp
|
| +++ /dev/null
|
| @@ -1,44 +0,0 @@
|
| -// Copyright 2015 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/cssom/KeywordValue.h"
|
| -
|
| -#include "bindings/core/v8/ExceptionState.h"
|
| -#include "core/css/CSSCustomIdentValue.h"
|
| -#include "core/css/parser/CSSParserString.h"
|
| -#include "core/css/parser/CSSPropertyParser.h"
|
| -
|
| -namespace blink {
|
| -
|
| -KeywordValue* KeywordValue::create(const String& keyword, ExceptionState& exceptionState)
|
| -{
|
| - if (keyword.isEmpty()) {
|
| - exceptionState.throwTypeError("KeywordValue does not support empty strings");
|
| - return nullptr;
|
| - }
|
| - return new KeywordValue(keyword);
|
| -}
|
| -
|
| -const String& KeywordValue::keywordValue() const
|
| -{
|
| - return m_keywordValue;
|
| -}
|
| -
|
| -CSSValueID KeywordValue::keywordValueID() const
|
| -{
|
| - CSSParserString cssKeywordString;
|
| - cssKeywordString.init(m_keywordValue);
|
| - return cssValueKeywordID(cssKeywordString);
|
| -}
|
| -
|
| -CSSValue* KeywordValue::toCSSValue() const
|
| -{
|
| - CSSValueID keywordID = keywordValueID();
|
| - if (keywordID == CSSValueID::CSSValueInvalid) {
|
| - return CSSCustomIdentValue::create(m_keywordValue);
|
| - }
|
| - return cssValuePool().createIdentifierValue(keywordID);
|
| -}
|
| -
|
| -} // namespace blink
|
|
|