1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00
serenity/Userland/Libraries/LibWeb
Andreas Kling b8ee4dfda8 LibWeb: Don't compute style *again* for elements in Layout::TreeBuilder
TreeBuilder wasn't taking advantage of the fact that we already have
computed style cached on each DOM::Element by the time we're
constructing a layout tree.

So instead of using the cached style, we recomputed it from scratch for
every element. This was done because invalidation was broken in many
places, but now that it's more or less trustworthy, stop recomputing
style on the fly in TreeBuilder and use what the preceding style update
pass gave us instead.

This basically cuts style computation work in half. :^)
2022-03-15 22:43:44 +01:00
..
Bindings LibWeb: Add window.sessionStorage 2022-03-10 10:02:51 +01:00
Cookie Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2022-01-31 18:23:22 +00:00
Crypto LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
CSS LibWeb: Rename Element::specified_css_values() => computed_css_values() 2022-03-15 19:48:19 +01:00
DOM LibWeb: Fix mistake in Node::invalidate_style() 2022-03-15 22:43:44 +01:00
DOMParsing LibWeb: Clean up static function in header 2021-10-06 23:52:40 +01:00
DumpLayoutTree Everywhere: Remove unused ArgsParser header 2021-11-01 21:12:58 +01:00
Encoding LibWeb: Implement a very basic version of TextDecoder 2022-02-16 22:48:32 +03:30
Fetch LibWeb: Implement spec-compliant MIME type struct and parser 2022-02-12 12:53:28 +01:00
Geometry LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
HighResolutionTime LibWeb: Move Window from DOM directory & namespace to HTML 2022-03-08 00:30:30 +01:00
HTML LibWeb: Make BrowsingContext::reset_cursor_blink_cycle() more robust 2022-03-15 19:48:19 +01:00
IntersectionObserver LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
Layout LibWeb: Don't compute style *again* for elements in Layout::TreeBuilder 2022-03-15 22:43:44 +01:00
Loader LibWeb: Fail resource loads on HTTP 4xx or 5xx error 2022-03-09 16:43:00 +01:00
MimeSniff LibWeb: Fix comparing current position to quote in Mime Type quote parse 2022-02-12 17:13:14 +00:00
NavigationTiming LibWeb: Move Window from DOM directory & namespace to HTML 2022-03-08 00:30:30 +01:00
Page LibWeb: Move hit testing to the painting tree 2022-03-11 00:21:49 +01:00
Painting LibWeb: Sort stacking context tree once, after fully building it 2022-03-13 18:09:43 +01:00
RequestIdleCallback LibWeb: Add the IdleDeadline interface from the RequestIdleCallback spec 2021-09-17 13:20:18 +02:00
ResizeObserver LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
Scripts Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Selection LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
SVG LibWeb: Add fast_is<SVG::SVGSVGElement>() 2022-03-13 00:04:51 +01:00
Tests LibWeb: Capture <script> element's node document on execution 2021-12-21 13:50:00 -08:00
UIEvents LibWeb: Move Window from DOM directory & namespace to HTML 2022-03-08 00:30:30 +01:00
URL LibWeb: Add imports to all IDL files that depend on others 2022-02-16 22:48:32 +03:30
WebAssembly LibWeb: Don't check for get().is_empty() in WebAssemblyMemoryConstructor 2022-02-16 22:48:32 +03:30
WebSockets LibWeb: Move Window from DOM directory & namespace to HTML 2022-03-08 00:30:30 +01:00
XHR LibWeb: Move Window from DOM directory & namespace to HTML 2022-03-08 00:30:30 +01:00
CMakeLists.txt LibWeb: Move PaintingBox to its own .cpp and .h files 2022-03-11 00:21:49 +01:00
DOMTreeModel.cpp Browser+LibWeb+WebContent: Show style for pseudo-elements :^) 2022-03-10 17:30:09 +01:00
DOMTreeModel.h Browser+LibWeb+WebContent: Show style for pseudo-elements :^) 2022-03-10 17:30:09 +01:00
Dump.cpp LibWeb: Rename Element::specified_css_values() => computed_css_values() 2022-03-15 19:48:19 +01:00
Dump.h LibWeb: Small improvements to layout tree dumps 2022-03-03 12:57:53 +01:00
FontCache.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FontCache.h Everywhere: Fully qualify font names by including their slope 2022-02-01 10:06:26 +01:00
Forward.h LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
ImageDecoding.cpp LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
ImageDecoding.h LibWeb: Move ImageDecoder client connection singleton to its own file 2021-11-20 10:56:31 +01:00
InProcessWebView.cpp LibWeb: Move PaintingBox to its own .cpp and .h files 2022-03-11 00:21:49 +01:00
InProcessWebView.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Namespace.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Namespace.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Origin.h LibWeb: Add origin property to window object 2022-03-01 13:38:20 +00:00
OutOfProcessWebView.cpp Browser+LibWeb+WebContent: Show style for pseudo-elements :^) 2022-03-10 17:30:09 +01:00
OutOfProcessWebView.h Browser+LibWeb+WebContent: Show style for pseudo-elements :^) 2022-03-10 17:30:09 +01:00
StylePropertiesModel.cpp Browser: Allow jumping to stylenames by typing in the inspector 2022-03-15 20:00:09 +01:00
StylePropertiesModel.h Browser: Allow jumping to stylenames by typing in the inspector 2022-03-15 20:00:09 +01:00
TreeNode.h LibWeb: Make Range.setStart and Range.setEnd spec compliant 2022-02-26 12:53:32 +01:00
WebContentClient.cpp Browser: Show currently loading host and remaining resource count 2022-03-10 00:51:05 +01:00
WebContentClient.h Browser: Show currently loading host and remaining resource count 2022-03-10 00:51:05 +01:00
WebViewHooks.h Browser: Show currently loading host and remaining resource count 2022-03-10 00:51:05 +01:00