| Summary: | Accelerate HTMLInputElement creation | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> | ||||||||
| Component: | New Bugs | Assignee: | Yusuke Suzuki <ysuzuki> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | cdumez, changseok, esprehn+autocc, ews-watchlist, gyuyoung.kim, koivisto, mifenton, rniwa, simon.fraser, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 220785 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Yusuke Suzuki
2021-01-19 18:21:04 PST
Created attachment 417934 [details]
Patch
Created attachment 417935 [details]
Patch
Created attachment 417937 [details]
Patch
Comment on attachment 417937 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=417937&action=review > Source/WebCore/html/InputType.h:337 > + explicit InputType(HTMLInputElement& element, Type type) I'd prefer to see Type be the first argument to this constructor and all the derived class constructors. > Source/WebCore/html/InputType.h:350 > + Type m_type; This can be const. Comment on attachment 417937 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=417937&action=review >> Source/WebCore/html/InputType.h:337 >> + explicit InputType(HTMLInputElement& element, Type type) > > I'd prefer to see Type be the first argument to this constructor and all the derived class constructors. Sounds good. I'll change them. >> Source/WebCore/html/InputType.h:350 >> + Type m_type; > > This can be const. Nice. Fixed. Committed r271672: <https://trac.webkit.org/changeset/271672> Nice! Blink did a similar optimization here. (In reply to Ryosuke Niwa from comment #8) > Nice! Blink did a similar optimization here. Oh! Nice :) |