diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-13 19:55:08 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-13 19:55:08 +0100 |
commit | c1e6fc67a1f20ada1b4ef881ac1d3bdabf360f34 (patch) | |
tree | 24f9bf968bdd25545c3bb30a38db94f4df6cf517 /Userland/Libraries/LibGemini/Job.h | |
parent | afc5fade054a4d0e62a81e8678f3fc593133b728 (diff) | |
download | serenity-c1e6fc67a1f20ada1b4ef881ac1d3bdabf360f34.zip |
LibWeb: Add a Vector::ensure_capacity() in collect_matching_rules()
Avoid some incremental Vector growth by pre-allocating enough capacity
to cover the case where every single selector matches an element.
Diffstat (limited to 'Userland/Libraries/LibGemini/Job.h')
0 files changed, 0 insertions, 0 deletions