Bug 220785

Summary: Further propagate ChildChange::Source to optimize HTMLInputElement creation
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: New BugsAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, changseok, esprehn+autocc, ews-watchlist, gyuyoung.kim, kangil.han, koivisto, mifenton, rniwa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 220758    
Bug Blocks:    
Attachments:
Description Flags
Patch
rniwa: review+, ews-feeder: commit-queue-
Patch none

Description Yusuke Suzuki 2021-01-20 19:42:29 PST
Further propagate ChildChange::Source to optimize HTMLInputElement creation
Comment 1 Yusuke Suzuki 2021-01-20 19:43:43 PST
Created attachment 418014 [details]
Patch
Comment 2 Ryosuke Niwa 2021-01-20 20:04:20 PST
Comment on attachment 418014 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=418014&action=review

Hm... it's a bit scary because parser* variants aren't safe to use in some cases but we'd see how it goes.

> Source/WebCore/dom/ContainerNode.cpp:494
> +        // insertBefore(node, null) is equivalent to appendChild(node)

I don't think we need this comment. Remove?
Comment 3 Yusuke Suzuki 2021-01-20 20:37:51 PST
Comment on attachment 418014 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=418014&action=review

Yes, I tried removing scary things, and attempt to use it in a safe places now. Uploading.

>> Source/WebCore/dom/ContainerNode.cpp:494
>> +        // insertBefore(node, null) is equivalent to appendChild(node)
> 
> I don't think we need this comment. Remove?

Removed.
Comment 4 Yusuke Suzuki 2021-01-20 20:53:34 PST
Created attachment 418021 [details]
Patch
Comment 5 Yusuke Suzuki 2021-01-20 22:32:37 PST
Committed r271686: <https://trac.webkit.org/changeset/271686>
Comment 6 Radar WebKit Bug Importer 2021-01-20 22:33:13 PST
<rdar://problem/73437900>