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

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

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/accessibility/AccessibilityMediaControls.cpp ('k') | Source/core/css/MediaList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 Google Inc. All rights reserved. 2 * Copyright (c) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 , value("") 84 , value("")
85 , important(false) 85 , important(false)
86 , disabled(false) 86 , disabled(false)
87 , parsedOk(false) 87 , parsedOk(false)
88 , range(SourceRange(0, 0)) 88 , range(SourceRange(0, 0))
89 { 89 {
90 } 90 }
91 91
92 String CSSPropertySourceData::toString() const 92 String CSSPropertySourceData::toString() const
93 { 93 {
94 DEFINE_STATIC_LOCAL(String, emptyValue, (ASCIILiteral("e"))); 94 DEFINE_STATIC_LOCAL(String, emptyValue, ("e"));
95 if (!name && value == emptyValue) 95 if (!name && value == emptyValue)
96 return String(); 96 return String();
97 97
98 StringBuilder result; 98 StringBuilder result;
99 if (disabled) 99 if (disabled)
100 result.append("/* "); 100 result.append("/* ");
101 result.append(name); 101 result.append(name);
102 result.appendLiteral(": "); 102 result.appendLiteral(": ");
103 result.append(value); 103 result.append(value);
104 if (important) 104 if (important)
(...skipping 16 matching lines...) Expand all
121 void CSSPropertySourceData::init() 121 void CSSPropertySourceData::init()
122 { 122 {
123 static bool initialized; 123 static bool initialized;
124 if (!initialized) { 124 if (!initialized) {
125 new ((void *) &emptyCSSPropertySourceData) CSSPropertySourceData("", "e" , false, false, false, SourceRange(0, 0)); 125 new ((void *) &emptyCSSPropertySourceData) CSSPropertySourceData("", "e" , false, false, false, SourceRange(0, 0));
126 initialized = true; 126 initialized = true;
127 } 127 }
128 } 128 }
129 129
130 } // namespace WebCore 130 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/accessibility/AccessibilityMediaControls.cpp ('k') | Source/core/css/MediaList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698