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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSGroupingRule.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 /* 1 /*
2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
3 * Copyright (C) 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above 9 * 1. Redistributions of source code must retain the above
10 * copyright notice, this list of conditions and the following 10 * copyright notice, this list of conditions and the following
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 if (m_childRuleCSSOMWrappers[index]) 103 if (m_childRuleCSSOMWrappers[index])
104 m_childRuleCSSOMWrappers[index]->setParentRule(0); 104 m_childRuleCSSOMWrappers[index]->setParentRule(0);
105 m_childRuleCSSOMWrappers.remove(index); 105 m_childRuleCSSOMWrappers.remove(index);
106 } 106 }
107 107
108 void CSSGroupingRule::appendCSSTextForItems(StringBuilder& result) const 108 void CSSGroupingRule::appendCSSTextForItems(StringBuilder& result) const
109 { 109 {
110 unsigned size = length(); 110 unsigned size = length();
111 for (unsigned i = 0; i < size; ++i) { 111 for (unsigned i = 0; i < size; ++i) {
112 result.appendLiteral(" "); 112 result.append(" ");
113 result.append(item(i)->cssText()); 113 result.append(item(i)->cssText());
114 result.append('\n'); 114 result.append('\n');
115 } 115 }
116 } 116 }
117 117
118 unsigned CSSGroupingRule::length() const 118 unsigned CSSGroupingRule::length() const
119 { 119 {
120 return m_groupRule->childRules().size(); 120 return m_groupRule->childRules().size();
121 } 121 }
122 122
(...skipping 27 matching lines...) Expand all
150 150
151 DEFINE_TRACE(CSSGroupingRule) 151 DEFINE_TRACE(CSSGroupingRule)
152 { 152 {
153 CSSRule::trace(visitor); 153 CSSRule::trace(visitor);
154 visitor->trace(m_childRuleCSSOMWrappers); 154 visitor->trace(m_childRuleCSSOMWrappers);
155 visitor->trace(m_groupRule); 155 visitor->trace(m_groupRule);
156 visitor->trace(m_ruleListCSSOMWrapper); 156 visitor->trace(m_ruleListCSSOMWrapper);
157 } 157 }
158 158
159 } // namespace blink 159 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSGradientValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSImageSetValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698