WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
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
Details
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
Details
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
Details
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
Details
Patch
(72.48 KB, patch)
2019-02-17 13:59 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(72.48 KB, patch)
2019-02-18 03:57 PST
,
Darin Adler
no flags
Details
Formatted Diff
Diff
Patch
(74.17 KB, patch)
2019-02-18 06:55 PST
,
Darin Adler
dbates
: review+
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2019-02-16 22:32:46 PST
Comment hidden (obsolete)
Created
attachment 362226
[details]
Patch
Darin Adler
Comment 2
2019-02-16 22:33:44 PST
Comment hidden (obsolete)
Probably not *quite* ready for review; I’m guessing there will be compilation errors on some non-Apple platforms.
EWS Watchlist
Comment 3
2019-02-16 23:25:53 PST
Comment hidden (obsolete)
Comment on
attachment 362226
[details]
Patch
Attachment 362226
[details]
did not pass mac-ews (mac): Output:
https://webkit-queues.webkit.org/results/11178805
Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 4
2019-02-16 23:25:55 PST
Comment hidden (obsolete)
Created
attachment 362227
[details]
Archive of layout-test-results from ews100 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 5
2019-02-16 23:28:32 PST
Comment hidden (obsolete)
Comment on
attachment 362226
[details]
Patch
Attachment 362226
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
https://webkit-queues.webkit.org/results/11178801
Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 6
2019-02-16 23:28:34 PST
Comment hidden (obsolete)
Created
attachment 362228
[details]
Archive of layout-test-results from ews105 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 7
2019-02-16 23:34:16 PST
Comment hidden (obsolete)
Comment on
attachment 362226
[details]
Patch
Attachment 362226
[details]
did not pass mac-debug-ews (mac): Output:
https://webkit-queues.webkit.org/results/11178775
Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 8
2019-02-16 23:34:17 PST
Comment hidden (obsolete)
Created
attachment 362229
[details]
Archive of layout-test-results from ews113 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 9
2019-02-16 23:59:13 PST
Comment hidden (obsolete)
Comment on
attachment 362226
[details]
Patch
Attachment 362226
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
https://webkit-queues.webkit.org/results/11178835
Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 10
2019-02-16 23:59:14 PST
Comment hidden (obsolete)
Created
attachment 362230
[details]
Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Darin Adler
Comment 11
2019-02-17 13:59:45 PST
Comment hidden (obsolete)
Created
attachment 362249
[details]
Patch
Darin Adler
Comment 12
2019-02-18 03:57:25 PST
Comment hidden (obsolete)
Created
attachment 362287
[details]
Patch
Darin Adler
Comment 13
2019-02-18 06:55:16 PST
Created
attachment 362293
[details]
Patch
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
Committed
r241751
: <
https://trac.webkit.org/changeset/241751
>
Radar WebKit Bug Importer
Comment 17
2019-02-18 18:22:08 PST
<
rdar://problem/48186054
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug