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

Side by Side Diff: Source/core/css/CSSStringValueBase.cpp

Issue 1306823004: Split out String, URI and CustomIdent from CSSPrimitiveValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@split_out_attr_values
Patch Set: Fixing tests 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "core/css/CSSStringValueBase.h"
7
8 #include "core/css/CSSMarkup.h"
9 #include "wtf/text/WTFString.h"
10
11 namespace blink {
12
13 template<> String CSSStringValueBase<CSSValue::StringClass>::customCSSText() con st
14 {
15 return serializeString(m_string);
16 }
17
18 template<> String CSSStringValueBase<CSSValue::CustomIdentClass>::customCSSText( ) const
19 {
20 return quoteCSSStringIfNeeded(m_string);
21 }
22
23 template<> String CSSStringValueBase<CSSValue::URIClass>::customCSSText() const
24 {
25 return "url(" + quoteCSSURLIfNeeded(m_string) + ")";
26 }
27
28 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698