DocumentFragment check is on a hot path and can be done by a node flag check.
Created attachment 176191 [details] Patch
Comment on attachment 176191 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=176191&action=review r+ing assuming that the perf impact on isShadowRoot()==true is acceptable. > Source/WebCore/ChangeLog:8 > + This chagne introduces Node::IsDocumentFragmentFlag so that we can Typo: change.
Committed r135833: <http://trac.webkit.org/changeset/135833>