Various cleanup of ContainerNode.cpp
* Mark collectChildrenAndRemoveFromOldParent |inline| There is only one callsite. * collectChildrenAndRemoveFromOldParentWithCheck() returns bool It makes callsites simpler. * We don't need to return |nullptr| in a case of hadException(). Callsites should check hadException() before referring the return value. * Remove useless local variables. * Use functors in parseInsertBefore() and parserAppendChild(). This CL has no behavior changes. Review-Url: https://codereview.chromium.org/2343513002 Cr-Commit-Position: refs/heads/master@{#418757}
Showing
Please register or sign in to comment