mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Make DisjointChunks not query size() when there are no chunks
This commit is contained in:
parent
2df54a7b56
commit
49cbd4dcca
Notes:
sideshowbarker
2024-07-17 23:07:41 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/49cbd4dcca0 Pull-request: https://github.com/SerenityOS/serenity/pull/11347 Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ public:
|
|||
return sum;
|
||||
}
|
||||
|
||||
bool is_empty() const { return size() == 0; }
|
||||
bool is_empty() const { return m_chunks.size() == 0 || size() == 0; }
|
||||
|
||||
DisjointSpans<T> spans() const&
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue