1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 23:20:59 +00:00
serenity/Userland
Andreas Kling 5989a3ee77 LibWeb: Honor CSS display value in is_inline() and is_inline_block()
These were totally ad-hoc before, is_inline() was based on a boolean
flag on Layout::Node that we set in various situations.

Meanwhile, is_inline_block() was a combination on is_inline() plus a
type check to see if the layout node inherited from BlockContainer.

This patch replaces the above mess with simple lookups of the CSS
display value. Note that layout nodes without their own style (i.e text
nodes) are automatically assumed to be inline and non-blocks. This has
to be special-cased since layout nodes without style will consult the
style of their parent, so without short-circuiting this would break.
2022-10-06 15:29:38 +02:00
..
Applets Userland: Tighten promises by removing 'proc' where it isn't used 2022-10-03 17:09:21 +01:00
Applications PixelPaint: Add actions to crop layer to selection/content 2022-10-06 12:29:16 +01:00
Demos Userland: Unveil /proc/all in applications which require it 2022-10-03 17:09:21 +01:00
DevTools HackStudio: Prevent closing the last editor group 2022-10-06 11:53:23 +01:00
DynamicLoader LibPthread: Implement named semaphores 2022-07-21 16:39:22 +02:00
Games Userland: Tighten promises by removing 'proc' where it isn't used 2022-10-03 17:09:21 +01:00
Libraries LibWeb: Honor CSS display value in is_inline() and is_inline_block() 2022-10-06 15:29:38 +02:00
Services WebContent: Use Web::Platform::Timer instead of Core::Timer 2022-10-06 09:51:04 +02:00
Shell AK+Everywhere: Replace "protocol" with "scheme" url helpers 2022-09-29 09:39:04 +01:00
Utilities Userland: Unveil /proc/all in applications which require it 2022-10-03 17:09:21 +01:00
CMakeLists.txt Meta+Userland: Add ENABLE_USERSPACE_COVERAGE_COLLECTION CMake option 2022-05-02 01:46:18 +02:00