Add Document::CreateRawElement(), and use it in some functions.
The purpose of this function is to reduce the number of callsites for FooElementFactory::createFooElement(), which don't support prefixes correctly and contain unnecessary custom element processing. The implementation of CreateRawElement() is equivalent to Document::createElement(qname, flags) without custom-element processing. * Document::createElement(local_name, options, exception_state): Replace createElement(local_name, exception_state) with CreateRawElement(). createElement(local_name, exception_state) contains V0 custom-element processing, but it isn't necessary here because it's already done before calling createElement(). * Document::createElementNS(ns, qname, exception_state): Replace createElement(qname, flag) call with V0 custom-element processing and CreateRawElement(). createElement(qname, flag) does V0 custom-element processing in this path. This CL adds the custom-element processing here, and use CreateRawElement(). * Document::createElementNS(ns, qname, options, exception_state): Replace createElement(qname, flag) call with CreateRawElement(). createElement(qname, flag) contains V0 custom-element processing, but it isn't necessary here because it's already done before calling createElement(). Bug: 806641 Change-Id: Ib3d0f3e8cc05b17c69945594b307d76988a840ea Reviewed-on: https://chromium-review.googlesource.com/890958Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#532366}
Showing
Please register or sign in to comment