NEW 165128
Avoid ref-count churn in DeleteFromTextNodeCommand constructor
https://bugs.webkit.org/show_bug.cgi?id=165128
Summary Avoid ref-count churn in DeleteFromTextNodeCommand constructor
Daniel Bates
Reported 2016-11-28 17:26:31 PST
In DeleteFromTextNodeCommand::DeleteFromTextNodeCommand() we copy the passed RefPtr<Text> node into DeleteFromTextNodeCommand::m_node. Instead we should WTFMove() it. This has the benefit of avoiding unnecessary ref-count churn.
Attachments
Patch (1.50 KB, patch)
2016-11-28 17:27 PST, Daniel Bates
darin: review-
buildbot: commit-queue-
Archive of layout-test-results from ews101 for mac-yosemite (1.39 MB, application/zip)
2016-11-28 17:53 PST, Build Bot
no flags
Archive of layout-test-results from ews113 for mac-yosemite (691.86 KB, application/zip)
2016-11-28 18:13 PST, Build Bot
no flags
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (1.06 MB, application/zip)
2016-11-28 18:46 PST, Build Bot
no flags
Archive of layout-test-results from ews121 for ios-simulator-wk2 (deleted)
2016-11-28 19:22 PST, Build Bot
no flags
Daniel Bates
Comment 1 2016-11-28 17:27:12 PST
Build Bot
Comment 2 2016-11-28 17:52:59 PST
Comment on attachment 295556 [details] Patch Attachment 295556 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/2585895 Number of test failures exceeded the failure limit.
Build Bot
Comment 3 2016-11-28 17:53:01 PST
Created attachment 295560 [details] Archive of layout-test-results from ews101 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 4 2016-11-28 18:13:24 PST
Comment on attachment 295556 [details] Patch Attachment 295556 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2585947 Number of test failures exceeded the failure limit.
Build Bot
Comment 5 2016-11-28 18:13:27 PST
Created attachment 295563 [details] Archive of layout-test-results from ews113 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 6 2016-11-28 18:46:38 PST
Comment on attachment 295556 [details] Patch Attachment 295556 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/2586102 Number of test failures exceeded the failure limit.
Build Bot
Comment 7 2016-11-28 18:46:40 PST
Created attachment 295566 [details] Archive of layout-test-results from ews107 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 8 2016-11-28 19:22:51 PST
Comment on attachment 295556 [details] Patch Attachment 295556 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/2586194 Number of test failures exceeded the failure limit.
Build Bot
Comment 9 2016-11-28 19:22:55 PST
Created attachment 295570 [details] Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Darin Adler
Comment 10 2016-11-28 19:57:47 PST
Comment on attachment 295556 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=295556&action=review > Source/WebCore/editing/DeleteFromTextNodeCommand.cpp:37 > + , m_node(WTFMove(node)) The failing tests seem to indicate that there are callers relying on the argument not becoming null; they were presumably doing a WTFMove but counting on it not working. We will need to fix whatever call site or sites is doing that.
Note You need to log in before you can comment on or make changes to this bug.