RESOLVED FIXED158292
Modernize various lambda captures
https://bugs.webkit.org/show_bug.cgi?id=158292
Summary Modernize various lambda captures
Chris Dumez
Reported 2016-06-01 21:26:16 PDT
Modernize various lambda captures, especially the ones unnecessarily allocating objects on the heap and destroying them in the lambda.
Attachments
Patch (29.43 KB, patch)
2016-06-01 22:09 PDT, Chris Dumez
no flags
Patch (27.19 KB, patch)
2016-06-02 08:53 PDT, Chris Dumez
no flags
Patch (28.10 KB, patch)
2016-06-02 09:45 PDT, Chris Dumez
no flags
Patch (29.88 KB, patch)
2016-06-02 10:04 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2016-06-01 22:09:11 PDT
WebKit Commit Bot
Comment 2 2016-06-01 22:11:12 PDT
Attachment 280308 [details] did not pass style-queue: ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:523: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.h:116: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/NetworkProcess.cpp:311: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/NetworkProcess.cpp:415: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 4 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brady Eidson
Comment 3 2016-06-01 22:58:06 PDT
Comment on attachment 280308 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=280308&action=review Reviewing this urged me to file https://bugs.webkit.org/show_bug.cgi?id=158293 r+ as long as cleaning up the build errors doesn't substantially change the patch. > Source/WebCore/Modules/websockets/ThreadableWebSocketChannelClientWrapper.cpp:-173 > - String messageCopy = message.isolatedCopy(); > - m_pendingTasks.append(std::make_unique<ScriptExecutionContext::Task>([this, message] (ScriptExecutionContext&) { AGGGGH! This one was straight up wrong!!! :(
Chris Dumez
Comment 4 2016-06-02 08:53:01 PDT
WebKit Commit Bot
Comment 5 2016-06-02 08:54:24 PDT
Attachment 280333 [details] did not pass style-queue: ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:523: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.h:116: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/NetworkProcess.cpp:311: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/NetworkProcess.cpp:415: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 4 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 6 2016-06-02 09:14:07 PDT
Hmm. "WTF::RefPtr<WebKit::NetworkProcess::fetchWebsiteData(WebCore::SessionID, WTF::OptionSet<WebKit::WebsiteDataType>, WTF::OptionSet<WebKit::WebsiteDataFetchOption>, unsigned long long)::CallbackAggregator>::RefPtr(WTF::RefPtr<WebKit::NetworkProcess::fetchWebsiteData(WebCore::SessionID, WTF::OptionSet<WebKit::WebsiteDataType>, WTF::OptionSet<WebKit::WebsiteDataFetchOption>, unsigned long long)::CallbackAggregator> const&)", referenced from: WebKit::NetworkProcess::fetchWebsiteData(WebCore::SessionID, WTF::OptionSet<WebKit::WebsiteDataType>, WTF::OptionSet<WebKit::WebsiteDataFetchOption>, unsigned long long) in NetworkProcess.o ld: symbol(s) not found for architecture x86_64 But I did not modify fetchWebsiteData() or any of its call sites. Weird.
Chris Dumez
Comment 7 2016-06-02 09:45:55 PDT
WebKit Commit Bot
Comment 8 2016-06-02 09:58:26 PDT
Attachment 280335 [details] did not pass style-queue: ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:524: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.h:117: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/NetworkProcess.cpp:311: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/NetworkProcess.cpp:415: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 4 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 9 2016-06-02 10:04:03 PDT
WebKit Commit Bot
Comment 10 2016-06-02 10:05:04 PDT
Attachment 280336 [details] did not pass style-queue: ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:524: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/cache/NetworkCache.h:117: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/NetworkProcess.cpp:311: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/NetworkProcess.cpp:355: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/NetworkProcess.cpp:369: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/NetworkProcess/NetworkProcess.cpp:415: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 6 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 11 2016-06-02 10:58:36 PDT
Comment on attachment 280336 [details] Patch Clearing flags on attachment: 280336 Committed r201602: <http://trac.webkit.org/changeset/201602>
Chris Dumez
Comment 12 2016-06-02 10:58:43 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.