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

Unified Diff: third_party/WebKit/Source/core/css/cssom/KeywordValue.cpp

Issue 1957163002: Rename KeywordValue to CSSKeywordValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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/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
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/KeywordValue.h ('k') | third_party/WebKit/Source/core/css/cssom/KeywordValue.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698