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

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

Issue 2403423002: [CSSTypedOM] Computed StylePropertyMap use ComputedStyle for Lengths (Closed)
Patch Set: Use StyleValueFactory & ComputedStyleCSSValueMapping for unsupported Created 3 years, 11 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 8530c0167602f2a624bab594a207cfaba489e2c8..cde43e139c91945d4ed1fec1018a1ee31a220355 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.cpp
@@ -45,6 +45,11 @@ CSSKeywordValue* CSSKeywordValue::fromCSSValue(const CSSValue& value) {
return nullptr;
}
+CSSKeywordValue* CSSKeywordValue::create(const AtomicString& keyword) {
+ DCHECK(!keyword.isEmpty());
+ return new CSSKeywordValue(keyword);
+}
+
const AtomicString& CSSKeywordValue::keywordValue() const {
return m_keywordValue;
}

Powered by Google App Engine
This is Rietveld 408576698