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

Unified Diff: third_party/WebKit/Source/core/css/CSSStringValueBase.cpp

Issue 1373433002: Split out CSSPrimitiveValue's PropertyID into CSSCustomIdentValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split_string
Patch Set: Created 5 years, 3 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/CSSStringValueBase.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSStringValueBase.cpp b/third_party/WebKit/Source/core/css/CSSStringValueBase.cpp
deleted file mode 100644
index 5dfcf0d364a1080f324879b0c9894aa1d90a8b1e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/css/CSSStringValueBase.cpp
+++ /dev/null
@@ -1,40 +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 "config.h"
-#include "core/css/CSSStringValueBase.h"
-
-#include "core/css/CSSMarkup.h"
-#include "wtf/text/WTFString.h"
-
-namespace blink {
-
-template<> CSSStringValueBase<StringValueClass::StringClass>::CSSStringValueBase(const String& str)
- : CSSValue(CSSValue::StringClass)
- , m_string(str) { }
-
-template<> CSSStringValueBase<StringValueClass::CustomIdentClass>::CSSStringValueBase(const String& str)
- : CSSValue(CSSValue::CustomIdentClass)
- , m_string(str) { }
-
-template<> CSSStringValueBase<StringValueClass::URIClass>::CSSStringValueBase(const String& str)
- : CSSValue(CSSValue::URIClass)
- , m_string(str) { }
-
-template<> String CSSStringValueBase<StringValueClass::StringClass>::customCSSText() const
-{
- return serializeString(m_string);
-}
-
-template<> String CSSStringValueBase<StringValueClass::CustomIdentClass>::customCSSText() const
-{
- return quoteCSSStringIfNeeded(m_string);
-}
-
-template<> String CSSStringValueBase<StringValueClass::URIClass>::customCSSText() const
-{
- return "url(" + quoteCSSURLIfNeeded(m_string) + ")";
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698