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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.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/CSSKeywordValue.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/KeywordValue.cpp b/third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.cpp
similarity index 66%
rename from third_party/WebKit/Source/core/css/cssom/KeywordValue.cpp
rename to third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.cpp
index bb3634cbb7a420f134e94db784ec8c96e8c21521..0f0348cfee915b0f9f45ea50a344e8389b4db0b6 100644
--- a/third_party/WebKit/Source/core/css/cssom/KeywordValue.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.cpp
@@ -2,7 +2,7 @@
// 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 "core/css/cssom/CSSKeywordValue.h"
#include "bindings/core/v8/ExceptionState.h"
#include "core/css/CSSCustomIdentValue.h"
@@ -11,28 +11,28 @@
namespace blink {
-KeywordValue* KeywordValue::create(const String& keyword, ExceptionState& exceptionState)
+CSSKeywordValue* CSSKeywordValue::create(const String& keyword, ExceptionState& exceptionState)
{
if (keyword.isEmpty()) {
- exceptionState.throwTypeError("KeywordValue does not support empty strings");
+ exceptionState.throwTypeError("CSSKeywordValue does not support empty strings");
return nullptr;
}
- return new KeywordValue(keyword);
+ return new CSSKeywordValue(keyword);
}
-const String& KeywordValue::keywordValue() const
+const String& CSSKeywordValue::keywordValue() const
{
return m_keywordValue;
}
-CSSValueID KeywordValue::keywordValueID() const
+CSSValueID CSSKeywordValue::keywordValueID() const
{
CSSParserString cssKeywordString;
cssKeywordString.init(m_keywordValue);
return cssValueKeywordID(cssKeywordString);
}
-CSSValue* KeywordValue::toCSSValue() const
+CSSValue* CSSKeywordValue::toCSSValue() const
{
CSSValueID keywordID = keywordValueID();
if (keywordID == CSSValueID::CSSValueInvalid) {

Powered by Google App Engine
This is Rietveld 408576698