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

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

Issue 2312293003: [CSSTypedOM] Computed StylePropertyMap use ComputedStyle for Lengths (Closed)
Patch Set: rebase Created 4 years, 2 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 eb43610af9124e25044328740aba95c80ec669ad..8159b5c68a6ffaf771bf86cafc8901e5d331df90 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/CSSKeywordValue.cpp
@@ -21,6 +21,11 @@ CSSKeywordValue* CSSKeywordValue::create(const AtomicString& keyword,
return new CSSKeywordValue(keyword);
}
+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