Bug 252361
| Summary: | Update parserSetAttributes() to take in a Span instead of a Vector | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> |
| Component: | WebCore Misc. | Assignee: | Chris Dumez <cdumez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Chris Dumez
Update parserSetAttributes() to take in a Span instead of a Vector.
Its implementation doesn't require a Vector, a Span suffices. Using a Span has a couple of benefits:
1. It allows some call sites to not create a Vector at all to set a single attribute
2. It allows call sites to use Vectors that can have various inline capacities
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chris Dumez
Pull request: https://github.com/WebKit/WebKit/pull/10178
EWS
Committed 260349@main (7ee416a7a42e): <https://commits.webkit.org/260349@main>
Reviewed commits have been landed. Closing PR #10178 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/105530074>