forked from LadybirdBrowser/ladybird
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Reorder some checks in PaintableWithLines::hit_test for speed
In particular: - Don't compute DOM node editability if we don't need it. This was 22% of CPU time when scrolling on Wikipedia. - Defer inversion of transformed coordinates until we actually need them, after we've performed early returns.
- Loading branch information
1 parent
0a6793c
commit 4324439
Showing
1 changed file
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters