mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 00:38:56 +00:00
LibWeb: Don't redundantly re-sort StyleSheetList on sheet removal
The list is already kept sorted. Removing one sheet anywhere from the list will not make it unsorted.
This commit is contained in:
parent
9d8ab826cb
commit
819f2c1df6
Notes:
sideshowbarker
2024-07-17 22:01:16 +09:00
Author: https://github.com/awesomekling
Commit: 819f2c1df6
Pull-request: https://github.com/SerenityOS/serenity/pull/24058
Reviewed-by: https://github.com/trflynn89 ✅
2 changed files with 0 additions and 12 deletions
|
@ -50,8 +50,6 @@ private:
|
|||
void add_sheet(CSSStyleSheet&);
|
||||
void remove_sheet(CSSStyleSheet&);
|
||||
|
||||
void sort_sheets();
|
||||
|
||||
JS::NonnullGCPtr<DOM::Document> m_document;
|
||||
Vector<JS::NonnullGCPtr<CSSStyleSheet>> m_sheets;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue