From 04bec7a4f53ecd13673d6ea1acdb172abadc4b2c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 5 Feb 2022 15:19:16 +0100 Subject: LibWeb: Remove CSS::StyleInvalidator in favor of dirtying + lazy update Style updates are lazy since late last year, so the StyleInvalidator is actually hurting us more than it's helping by running the entire CSS selector machine on the whole DOM for every attribute change. Instead, simply mark the entire DOM dirty and let the lazy style update mechanism run *once* on next event loop iteration. --- Userland/Libraries/LibWeb/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/CMakeLists.txt') diff --git a/Userland/Libraries/LibWeb/CMakeLists.txt b/Userland/Libraries/LibWeb/CMakeLists.txt index f8d7d10cf3..7451212877 100644 --- a/Userland/Libraries/LibWeb/CMakeLists.txt +++ b/Userland/Libraries/LibWeb/CMakeLists.txt @@ -46,7 +46,6 @@ set(SOURCES CSS/Selector.cpp CSS/SelectorEngine.cpp CSS/StyleComputer.cpp - CSS/StyleInvalidator.cpp CSS/StyleProperties.cpp CSS/StyleSheet.cpp CSS/StyleSheetList.cpp -- cgit v1.2.3