[Webkit-unassigned] [Bug 165128] New: Avoid ref-count churn in DeleteFromTextNodeCommand constructor
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 28 17:26:31 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=165128
Bug ID: 165128
Summary: Avoid ref-count churn in DeleteFromTextNodeCommand
constructor
Classification: Unclassified
Product: WebKit
Version: WebKit Local Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dbates at webkit.org
CC: aestes at apple.com, enrica at apple.com, rniwa at webkit.org
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161129/9b75745e/attachment.html>
More information about the webkit-unassigned
mailing list