mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-09 02:21:53 +00:00
Everywhere: Fix typos - act III
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
This commit is contained in:
parent
51b4b4a270
commit
19f88f96dc
Notes:
github-actions[bot]
2025-06-16 13:21:54 +00:00
Author: https://github.com/szepeviktor
Commit: 19f88f96dc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4300
Reviewed-by: https://github.com/AtkinsSJ ✅
12 changed files with 16 additions and 16 deletions
|
@ -35,7 +35,7 @@ String const& SourceCode::code() const
|
|||
|
||||
void SourceCode::fill_position_cache() const
|
||||
{
|
||||
constexpr size_t predicted_mimimum_cached_positions = 8;
|
||||
constexpr size_t predicted_minimum_cached_positions = 8;
|
||||
constexpr size_t minimum_distance_between_cached_positions = 32;
|
||||
constexpr size_t maximum_distance_between_cached_positions = 8192;
|
||||
|
||||
|
@ -46,7 +46,7 @@ void SourceCode::fill_position_cache() const
|
|||
size_t line = 1;
|
||||
size_t column = 1;
|
||||
size_t offset_of_last_starting_point = 0;
|
||||
m_cached_positions.ensure_capacity(predicted_mimimum_cached_positions + m_code.bytes().size() / maximum_distance_between_cached_positions);
|
||||
m_cached_positions.ensure_capacity(predicted_minimum_cached_positions + m_code.bytes().size() / maximum_distance_between_cached_positions);
|
||||
m_cached_positions.append({ .line = 1, .column = 1, .offset = 0 });
|
||||
|
||||
Utf8View const view(m_code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue