1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:37:37 +00:00
serenity/Userland/Libraries/LibWeb/Painting
sin-ack 29583104d2 LibWeb: Refactor all LabelableNode subclasses + input event handling :^)
This commit is messy due to the Paintable and Layout classes being
tangled together.

The RadioButton, CheckBox and ButtonBox classes are now subclasses of
FormAssociatedLabelableNode. This subclass separates these layout nodes
from LabelableNode, which is also the superclass of non-form associated
labelable nodes (Progress).

ButtonPaintable, CheckBoxPaintable and RadioButtonPaintable no longer
call events on DOM nodes directly from their mouse event handlers;
instead, all the functionality is now directly in EventHandler, which
dispatches the related events. handle_mousedown and related methods
return a bool indicating whether the event handling should proceed.

Paintable classes can now return an alternative DOM::Node which should
be the target of the mouse event. Labels use this to indicate that the
labeled control should be the target of the mouse events.

HTMLInputElement put its activation behavior on run_activation_behavior,
which wasn't actually called anywhere and had to be manually called by
other places. We now use activation_behavior which is used by
EventDispatcher.

This commit also brings HTMLInputElement closer to spec by removing the
did_foo functions that did ad-hoc event dispatching and unifies the
behavior under run_input_activation_behavior.
2022-03-16 00:38:31 +01:00
..
BackgroundPainting.cpp LibWeb: Remove redundant Length::resolved() calls 2022-02-18 19:04:37 +01:00
BackgroundPainting.h LibWeb: Implement background-clip :^) 2021-11-17 22:20:01 +01:00
BorderPainting.cpp LibWeb: Remove redundant Length::resolved() calls 2022-02-18 19:04:37 +01:00
BorderPainting.h LibWeb: Convert border-radii from Length to LengthPercentage :^) 2022-01-20 00:04:10 +01:00
ButtonPaintable.cpp LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
ButtonPaintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
CanvasPaintable.cpp LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
CanvasPaintable.h LibWeb: Move PaintingBox to its own .cpp and .h files 2022-03-11 00:21:49 +01:00
CheckBoxPaintable.cpp LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
CheckBoxPaintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
ImagePaintable.cpp LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
ImagePaintable.h LibWeb: Move PaintingBox to its own .cpp and .h files 2022-03-11 00:21:49 +01:00
InlinePaintable.cpp LibWeb: Let paintables cache their containing block and absolute rect 2022-03-12 00:39:31 +01:00
InlinePaintable.h LibWeb: Move PaintingBox to its own .cpp and .h files 2022-03-11 00:21:49 +01:00
LabelablePaintable.cpp LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
LabelablePaintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
MarkerPaintable.cpp LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
MarkerPaintable.h LibWeb: Move PaintingBox to its own .cpp and .h files 2022-03-11 00:21:49 +01:00
NestedBrowsingContextPaintable.cpp LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
NestedBrowsingContextPaintable.h LibWeb: Move PaintingBox to its own .cpp and .h files 2022-03-11 00:21:49 +01:00
Paintable.cpp LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
Paintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
PaintableBox.cpp LibWeb: Let paintables cache their containing block and absolute rect 2022-03-12 00:39:31 +01:00
PaintableBox.h LibWeb: Make Layout::SVGBox a BlockContainer again 2022-03-13 00:04:51 +01:00
PaintContext.cpp LibWeb: Don't crash on content with SVG elements outside of <svg> 2022-02-28 14:17:44 +01:00
PaintContext.h LibWeb: Move some of PaintContext out of line 2022-02-28 14:17:44 +01:00
ProgressPaintable.cpp LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
ProgressPaintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
RadioButtonPaintable.cpp LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
RadioButtonPaintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
ShadowPainting.cpp LibWeb: Paint box-shadows more efficiently 2022-02-09 19:36:26 +01:00
ShadowPainting.h LibWeb: Incorporate spread-distance into box-shadow rendering 2022-02-08 17:45:51 +01:00
StackingContext.cpp LibWeb: Sort stacking context tree once, after fully building it 2022-03-13 18:09:43 +01:00
StackingContext.h LibWeb: Sort stacking context tree once, after fully building it 2022-03-13 18:09:43 +01:00
SVGGeometryPaintable.cpp LibWeb: Keep SVG elliptical arc shape when applying viewbox 2022-03-12 15:38:55 +01:00
SVGGeometryPaintable.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
SVGGraphicsPaintable.cpp LibWeb: Split Paintable into Paintable and PaintableBox 2022-03-11 00:21:49 +01:00
SVGGraphicsPaintable.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
SVGPaintable.cpp LibWeb: Make Layout::SVGBox a BlockContainer again 2022-03-13 00:04:51 +01:00
SVGPaintable.h LibWeb: Make Layout::SVGBox a BlockContainer again 2022-03-13 00:04:51 +01:00
SVGSVGPaintable.cpp LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
SVGSVGPaintable.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
TextPaintable.cpp LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00
TextPaintable.h LibWeb: Refactor all LabelableNode subclasses + input event handling :^) 2022-03-16 00:38:31 +01:00