RESOLVED FIXED 194752
Continue reducing use of String::format, now focusing on hex: "%p", "%x", etc.
https://bugs.webkit.org/show_bug.cgi?id=194752
Summary Continue reducing use of String::format, now focusing on hex: "%p", "%x", etc.
Darin Adler
Reported 2019-02-16 21:34:55 PST
Continue reducing use of String::format, now focusing on hex: "%p", "%x", etc.
Attachments
Patch (72.27 KB, patch)
2019-02-16 22:32 PST, Darin Adler
no flags
Archive of layout-test-results from ews100 for mac-highsierra (524.01 KB, application/zip)
2019-02-16 23:25 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews105 for mac-highsierra-wk2 (281.53 KB, application/zip)
2019-02-16 23:28 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews113 for mac-highsierra (283.94 KB, application/zip)
2019-02-16 23:34 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews125 for ios-simulator-wk2 (297.21 KB, application/zip)
2019-02-16 23:59 PST, EWS Watchlist
no flags
Patch (72.48 KB, patch)
2019-02-17 13:59 PST, Darin Adler
no flags
Patch (72.48 KB, patch)
2019-02-18 03:57 PST, Darin Adler
no flags
Patch (74.17 KB, patch)
2019-02-18 06:55 PST, Darin Adler
dbates: review+
Darin Adler
Comment 1 2019-02-16 22:32:46 PST Comment hidden (obsolete)
Darin Adler
Comment 2 2019-02-16 22:33:44 PST Comment hidden (obsolete)
EWS Watchlist
Comment 3 2019-02-16 23:25:53 PST Comment hidden (obsolete)
EWS Watchlist
Comment 4 2019-02-16 23:25:55 PST Comment hidden (obsolete)
EWS Watchlist
Comment 5 2019-02-16 23:28:32 PST Comment hidden (obsolete)
EWS Watchlist
Comment 6 2019-02-16 23:28:34 PST Comment hidden (obsolete)
EWS Watchlist
Comment 7 2019-02-16 23:34:16 PST Comment hidden (obsolete)
EWS Watchlist
Comment 8 2019-02-16 23:34:17 PST Comment hidden (obsolete)
EWS Watchlist
Comment 9 2019-02-16 23:59:13 PST Comment hidden (obsolete)
EWS Watchlist
Comment 10 2019-02-16 23:59:14 PST Comment hidden (obsolete)
Darin Adler
Comment 11 2019-02-17 13:59:45 PST Comment hidden (obsolete)
Darin Adler
Comment 12 2019-02-18 03:57:25 PST Comment hidden (obsolete)
Darin Adler
Comment 13 2019-02-18 06:55:16 PST
Daniel Bates
Comment 14 2019-02-18 09:26:57 PST
Comment on attachment 362293 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=362293&action=review > Source/WTF/wtf/text/StringConcatenateNumbers.h:119 > + : m_number(number) No change necessary. Uniform initializer syntax (UIS)? > Source/WebCore/html/HTMLMediaElement.h:1210 > + static String toString(const WebCore::HTMLMediaElement::AutoplayEventPlaybackState reason) { return convertEnumerationToString(reason); } Ok as-is. Const not necessary. > Source/WebCore/html/HTMLMediaElement.h:1217 > + static String string(WebCore::TextTrackCue* const& cue) { return cue->debugString(); } Ok as-is. const type without const pointer and the ref would be better. Find yourself with more free time, it would be better to pass by const lvalue ref. > Source/WebCore/platform/graphics/Color.cpp:393 > + if (alpha() < 0xFF) > + return makeString('#', hex(red(), 2), hex(green(), 2), hex(blue(), 2), hex(alpha(), 2)); > + return makeString('#', hex(red(), 2), hex(green(), 2), hex(blue(), 2)); Nice. > Source/WebCore/rendering/RenderFragmentedFlow.h:287 > + static String string(const WeakPtr<WebCore::RenderFragmentContainer> value) { return value.get() ? value->debugString() : String(); } No change necessary. .get() is not necessary. Could use UIS for nullptr branch.
Daniel Bates
Comment 15 2019-02-18 09:29:39 PST
Comment on attachment 362293 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=362293&action=review > Source/JavaScriptCore/ChangeLog:11 > + keep behavior the same, so lets do that. Ok as-is. lets => let's
Darin Adler
Comment 16 2019-02-18 18:04:38 PST
Radar WebKit Bug Importer
Comment 17 2019-02-18 18:22:08 PST
Note You need to log in before you can comment on or make changes to this bug.