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

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

Issue 2024373002: Replace CSSParserString with StringView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Match arguments to equalStringView. 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/CSSKeywordValue.cpp b/third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.cpp
index 0f0348cfee915b0f9f45ea50a344e8389b4db0b6..daa3d18056c8311a194b8a59bfa2463a1eec38ee 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.cpp
@@ -6,7 +6,6 @@
#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 {
@@ -27,9 +26,7 @@ const String& CSSKeywordValue::keywordValue() const
CSSValueID CSSKeywordValue::keywordValueID() const
{
- CSSParserString cssKeywordString;
- cssKeywordString.init(m_keywordValue);
- return cssValueKeywordID(cssKeywordString);
+ return cssValueKeywordID(m_keywordValue);
}
CSSValue* CSSKeywordValue::toCSSValue() const
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSVariableData.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSAtRuleID.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698