Move some of the work from Element::insertedIntoAncestor() / removedFromAncestor() to subclasses. These functions are hot and should be kept as efficient as possible. There is no reason for every Element to pay run-time cost for checks that only apply to article or label elements.
Pull request: https://github.com/WebKit/WebKit/pull/1017
Committed r294930 (251041@main): <https://commits.webkit.org/251041@main> Reviewed commits have been landed. Closing PR #1017 and removing active labels.
<rdar://problem/94017378>