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

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

Issue 2017053003: Remove StringBuilder::appendLiteral. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 years, 6 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 25 matching lines...) Expand all
36 36
37 CSSSupportsRule::CSSSupportsRule(StyleRuleSupports* supportsRule, CSSStyleSheet* parent) 37 CSSSupportsRule::CSSSupportsRule(StyleRuleSupports* supportsRule, CSSStyleSheet* parent)
38 : CSSGroupingRule(supportsRule, parent) 38 : CSSGroupingRule(supportsRule, parent)
39 { 39 {
40 } 40 }
41 41
42 String CSSSupportsRule::cssText() const 42 String CSSSupportsRule::cssText() const
43 { 43 {
44 StringBuilder result; 44 StringBuilder result;
45 45
46 result.appendLiteral("@supports "); 46 result.append("@supports ");
47 result.append(conditionText()); 47 result.append(conditionText());
48 result.appendLiteral(" {\n"); 48 result.append(" {\n");
49 appendCSSTextForItems(result); 49 appendCSSTextForItems(result);
50 result.append('}'); 50 result.append('}');
51 51
52 return result.toString(); 52 return result.toString();
53 } 53 }
54 54
55 String CSSSupportsRule::conditionText() const 55 String CSSSupportsRule::conditionText() const
56 { 56 {
57 return toStyleRuleSupports(m_groupRule.get())->conditionText(); 57 return toStyleRuleSupports(m_groupRule.get())->conditionText();
58 } 58 }
59 59
60 } // namespace blink 60 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.cpp ('k') | third_party/WebKit/Source/core/css/CSSViewportRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698