1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:58:12 +00:00
serenity/Userland/Libraries/LibWeb
Andreas Kling 8a0e40c5b0 LibWeb: Update StackingContext::paint_descendants() for new rule
Since positioned elements no longer automatically create stacking
contexts, we can't rely on this assumption when painting descendants of
a stacking context.

In this commit, we fix an issue that manifested as a failure to
Gfx::Painter::restore() in the "Overlay" paint phase. What happened was
that a CSS clip was being applied in the "Background" paint phase, and
then unapplied in the "Overlay" phase. Due to bogus checks in
paint_descendants(), the "Background" phase never ran for positioned
elements, but the "Overlay" phase did.

The check for positioned elements was bogus in the first place and had
never actually worked before, since we would always skip over positioned
descendants due to them having stacking contexts.
2022-10-23 23:32:42 +02:00
..
Bindings LibWeb: Hang on to the internal realm with a JS::Handle 2022-10-20 15:16:23 +02:00
Cookie LibWeb: Parse SameSite cookie attribute 2022-10-22 18:17:01 +02:00
Crypto LibWeb: Remove unecessary dependence on Window from assorted classes 2022-10-01 21:05:32 +01:00
CSS LibWeb: Make the CSS parser use the new double parser 2022-10-23 15:48:45 +02:00
DOM Revert "LibWeb: Prevent world leak when activating event handler" 2022-10-21 13:32:13 +02:00
DOMParsing LibWeb: Remove unecessary dependence on Window from DOM and WebIDL 2022-10-01 21:05:32 +01:00
Encoding LibWeb: Remove unecessary dependence on Window from assorted classes 2022-10-01 21:05:32 +01:00
Fetch LibWeb: Remove workaround for nested BodyInit IDL union type 2022-10-21 12:11:24 +02:00
FileAPI LibWeb: Add FileList from the FileAPI spec 2022-10-04 22:05:14 +02:00
Geometry LibWeb: Add Exposed attribute and IDL spec links where missing 2022-10-09 10:14:57 +02:00
HighResolutionTime LibWeb: Add Exposed attribute and IDL spec links where missing 2022-10-09 10:14:57 +02:00
HTML LibWeb: Make HTMLProgressElement use the new double parser 2022-10-23 15:48:45 +02:00
Infra LibWeb: Run 'UTF-8 decode' in parse_json_bytes_to_javascript_value() 2022-10-04 20:05:09 +01:00
IntersectionObserver LibWeb: Remove unecessary dependence on Window from assorted classes 2022-10-01 21:05:32 +01:00
Layout LibWeb: Don't create stacking contexts for all positioned elements 2022-10-23 23:32:42 +02:00
Loader LibWeb: Let LoadRequest::set_body() take by value 2022-10-16 02:06:29 +03:30
MimeSniff LibWeb: Implement more close to spec javascript mime type checking 2022-10-06 16:41:36 +02:00
NavigationTiming LibWeb: Add Exposed attribute and IDL spec links where missing 2022-10-09 10:14:57 +02:00
Page LibWeb: Try harder to find a suitable DOM node for mouse event dispatch 2022-10-23 23:32:42 +02:00
Painting LibWeb: Update StackingContext::paint_descendants() for new rule 2022-10-23 23:32:42 +02:00
Platform LibWeb+WebContent: Add EventLoopPlugin::quit() virtual 2022-10-08 10:54:52 +02:00
ReferrerPolicy LibWeb: Add referrer policy to Fetch::Infrastructure::Request 2022-09-27 14:56:17 +01:00
RequestIdleCallback LibWeb: Add Exposed attribute and IDL spec links where missing 2022-10-09 10:14:57 +02:00
ResizeObserver LibWeb: Remove unecessary dependence on Window from assorted classes 2022-10-01 21:05:32 +01:00
Scripts Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Selection LibWeb: Implement a large chunk of the Selection API 2022-10-11 21:49:48 +02:00
Streams LibWeb: Add Exposed attribute and IDL spec links where missing 2022-10-09 10:14:57 +02:00
SVG LibWeb: Make SVG::AttributeParser use the new double parser 2022-10-23 15:48:45 +02:00
Tests Everywhere: Rename WrapperGenerator to BindingsGenerator 2022-09-21 23:06:08 +01:00
UIEvents LibWeb: Add button property in MouseEvent 2022-10-23 15:58:16 +02:00
URL LibWeb: Add Exposed attribute and IDL spec links where missing 2022-10-09 10:14:57 +02:00
WebAssembly LibWeb: Cleanup unecessary uses and includes of HTML::Window 2022-10-01 21:05:32 +01:00
WebGL LibWeb: Remove unecessary dependence on Window from WebGL and WebSocket 2022-10-01 21:05:32 +01:00
WebIDL LibWeb: Add Exposed attribute and IDL spec links where missing 2022-10-09 10:14:57 +02:00
WebSockets LibWeb: Add Exposed attribute and IDL spec links where missing 2022-10-09 10:14:57 +02:00
XHR LibWeb: Revert support for DOM::Document in XHR::send() 2022-10-20 17:57:52 +02:00
XML LibWeb: Rename HighResolutionTime/{CoarsenTime => TimeOrigin}.cpp/h 2022-10-05 09:12:59 +01:00
CMakeLists.txt LibWeb: Dispatch "wheel" event 2022-10-23 15:58:16 +02:00
Dump.cpp LibWeb: Unbreak layout tree dumps after layout tree GC changes 2022-10-20 16:06:26 +02:00
Dump.h LibWeb: Implement initial CSSFontFaceRule and FontFace classes 2022-03-28 22:25:25 +02:00
FontCache.cpp LibGfx: Move other font-related files to LibGfx/Font/ 2022-04-09 23:48:18 +02:00
FontCache.h LibGfx: Move other font-related files to LibGfx/Font/ 2022-04-09 23:48:18 +02:00
Forward.h LibWeb: Add parent classes for managing GridTrackSizes 2022-10-15 16:04:01 +02:00
idl_files.cmake LibWeb: Dispatch "wheel" event 2022-10-23 15:58:16 +02: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
TreeNode.h LibWeb: Make the layout tree GC-allocated 2022-10-20 15:16:23 +02:00