Use more smart pointers in editing node.
Pull request: https://github.com/WebKit/WebKit/pull/17783
Committed 268054@main (9318f2ff1342): <https://commits.webkit.org/268054@main> Reviewed commits have been landed. Closing PR #17783 and removing active labels.
<rdar://problem/115599780>