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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSSupportsRule.cpp

Issue 2813863003: Rewrite references to "wtf/" to "platform/wtf/" in core/css and core/style. (Closed)
Patch Set: Rebase. Created 3 years, 8 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
1 /* Copyright (C) 2012 Motorola Mobility Inc. All rights reserved. 1 /* Copyright (C) 2012 Motorola Mobility Inc. All rights reserved.
2 * 2 *
3 * Redistribution and use in source and binary forms, with or without 3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are 4 * modification, are permitted provided that the following conditions are
5 * met: 5 * met:
6 * 6 *
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above 9 * 2. Redistributions in binary form must reproduce the above
10 * copyright notice, this list of conditions and the following disclaimer in 10 * copyright notice, this list of conditions and the following disclaimer in
(...skipping 12 matching lines...) Expand all
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #include "core/css/CSSSupportsRule.h" 29 #include "core/css/CSSSupportsRule.h"
30 30
31 #include "core/css/CSSRule.h" 31 #include "core/css/CSSRule.h"
32 #include "core/css/StyleRule.h" 32 #include "core/css/StyleRule.h"
33 #include "wtf/text/StringBuilder.h" 33 #include "platform/wtf/text/StringBuilder.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 CSSSupportsRule::CSSSupportsRule(StyleRuleSupports* supports_rule, 37 CSSSupportsRule::CSSSupportsRule(StyleRuleSupports* supports_rule,
38 CSSStyleSheet* parent) 38 CSSStyleSheet* parent)
39 : CSSConditionRule(supports_rule, parent) {} 39 : CSSConditionRule(supports_rule, parent) {}
40 40
41 String CSSSupportsRule::cssText() const { 41 String CSSSupportsRule::cssText() const {
42 StringBuilder result; 42 StringBuilder result;
43 43
44 result.Append("@supports "); 44 result.Append("@supports ");
45 result.Append(conditionText()); 45 result.Append(conditionText());
46 result.Append(" {\n"); 46 result.Append(" {\n");
47 AppendCSSTextForItems(result); 47 AppendCSSTextForItems(result);
48 result.Append('}'); 48 result.Append('}');
49 49
50 return result.ToString(); 50 return result.ToString();
51 } 51 }
52 52
53 } // namespace blink 53 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.cpp ('k') | third_party/WebKit/Source/core/css/CSSTestHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698