Changeset 127639 in webkit
- Timestamp:
- Sep 5, 2012 1:31:57 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r127635 r127639 1 2012-09-05 Benjamin Poulain <bpoulain@apple.com> 2 3 More fixes for String::operator+=() on Mac 4 https://bugs.webkit.org/show_bug.cgi?id=95880 5 6 Reviewed by Adam Barth. 7 8 Followup for r127574, I forgot some use of strings. 9 10 * css/StylePropertySet.cpp: 11 (WebCore::StylePropertySet::getShorthandValue): Use String builder to construct the shorthand. 12 1 13 2012-09-05 James Robinson <jamesr@chromium.org> 2 14 -
trunk/Source/WebCore/css/StylePropertySet.cpp
r127593 r127639 432 432 String StylePropertySet::getShorthandValue(const StylePropertyShorthand& shorthand) const 433 433 { 434 String res;434 StringBuilder result; 435 435 for (unsigned i = 0; i < shorthand.length(); ++i) { 436 436 if (!isPropertyImplicit(shorthand.properties()[i])) { … … 440 440 if (value->isInitialValue()) 441 441 continue; 442 if (!res.isNull()) 443 res += " "; 444 res += value->cssText(); 445 } 446 } 447 return res; 442 if (!result.isEmpty()) 443 result.append(' '); 444 result.append(value->cssText()); 445 } 446 } 447 if (result.isEmpty()) 448 return String(); 449 return result.toString(); 448 450 } 449 451 -
trunk/Source/WebKit/mac/ChangeLog
r127372 r127639 1 2012-09-05 Benjamin Poulain <bpoulain@apple.com> 2 3 More fixes for String::operator+=() on Mac 4 https://bugs.webkit.org/show_bug.cgi?id=95880 5 6 Reviewed by Adam Barth. 7 8 * WebView/WebRenderLayer.mm: 9 (+[WebRenderLayer nameForLayer:]): Use StringBuilder to concatenate the class names 10 efficiently. 11 * WebView/WebView.mm: 12 (+[WebView _decodeData:]): This is a legitimate use of String::append(), there 13 is no other concatenation done on that string. 14 1 15 2012-09-01 Mark Lam <mark.lam@apple.com> 2 16 -
trunk/Source/WebKit/mac/WebView/WebRenderLayer.mm
r95901 r127639 60 60 if (node->hasClass()) { 61 61 StyledElement* styledElement = static_cast<StyledElement*>(node); 62 String classes;62 StringBuilder classes; 63 63 for (size_t i = 0; i < styledElement->classNames().size(); ++i) { 64 64 if (i > 0) 65 classes += " ";66 classes += styledElement->classNames()[i];65 classes.append(' '); 66 classes.append(styledElement->classNames()[i]); 67 67 } 68 name = [name stringByAppendingFormat:@" class=\"%@\"", (NSString *)classes ];68 name = [name stringByAppendingFormat:@" class=\"%@\"", (NSString *)classes.toString()]; 69 69 } 70 70 } -
trunk/Source/WebKit/mac/WebView/WebView.mm
r127191 r127639 1788 1788 RefPtr<TextResourceDecoder> decoder = TextResourceDecoder::create("text/html"); // bookmark files are HTML 1789 1789 String result = decoder->decode(static_cast<const char*>([data bytes]), [data length]); 1790 result += decoder->flush();1790 result.append(decoder->flush()); 1791 1791 return result; 1792 1792 } -
trunk/Source/WebKit2/ChangeLog
r127614 r127639 1 2012-09-05 Benjamin Poulain <bpoulain@apple.com> 2 3 More fixes for String::operator+=() on Mac 4 https://bugs.webkit.org/show_bug.cgi?id=95880 5 6 Reviewed by Adam Barth. 7 8 * UIProcess/WebInspectorProxy.cpp: 9 (WebKit::WebInspectorProxy::createInspectorPage): This is a legitimate use of append(), 10 there is no other concatenation outside that branch. 11 * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp: 12 (WebKit::parseRFC822HeaderFields): Use string operators instead of +=. 13 * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: 14 (WebKit::NetscapePlugin::userAgent): Another legitimate use of append(). 15 1 16 2012-09-05 Alexey Proskuryakov <ap@apple.com> 2 17 -
trunk/Source/WebKit2/UIProcess/WebInspectorProxy.cpp
r124613 r127639 330 330 String url = inspectorPageURL(); 331 331 if (m_isAttached) 332 url += "?docked=true";332 url.append("?docked=true"); 333 333 334 334 m_page->process()->assumeReadAccessToBaseURL(inspectorBaseURL()); -
trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp
r122400 r127639 204 204 205 205 String oldValue = headerFields.get(lastHeaderKey); 206 if (!oldValue.isNull()) { 207 String tmp = oldValue; 208 tmp += ", "; 209 tmp += value; 210 value = tmp; 211 } 206 if (!oldValue.isNull()) 207 value = oldValue + ", " + value; 212 208 213 209 headerFields.set(lastHeaderKey, value); -
trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp
r127202 r127639 162 162 #if PLUGIN_ARCHITECTURE(MAC) 163 163 if (quirks().contains(PluginQuirks::AppendVersion3UserAgent)) 164 userAgent += " Version/3.2.1";164 userAgent.append(" Version/3.2.1"); 165 165 #endif 166 166
Note: See TracChangeset
for help on using the changeset viewer.