Bug 149529

Summary: Optimize Range's lengthOfContentsInNode() for DocumentType Nodes
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, darin, esprehn+autocc, kangil.han, rniwa
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
URL: https://dom.spec.whatwg.org/#concept-node-length
Attachments:
Description Flags
Patch none

Description Chris Dumez 2015-09-24 10:09:09 PDT
Optimize Range's lengthOfContentsInNode() for DocumentType Nodes:
https://dom.spec.whatwg.org/#concept-node-length

We currently call Node::countChildNodes() unnecessarily on DocumentType Nodes instead of simply returning 0.
Comment 1 Chris Dumez 2015-09-24 10:18:54 PDT
Created attachment 261873 [details]
Patch
Comment 2 Chris Dumez 2015-09-24 10:25:31 PDT
Comment on attachment 261873 [details]
Patch

Clearing flags on attachment: 261873

Committed r190208: <http://trac.webkit.org/changeset/190208>
Comment 3 Chris Dumez 2015-09-24 10:25:36 PDT
All reviewed patches have been landed.  Closing bug.