1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00
serenity/Userland/Libraries/LibWeb/Layout
Timothy Flynn d8106dda73 LibWeb: Add "Label" to be the layout node for HTMLLabelElement
The HTML <label> element is special in that it may be associated with
some other <input> element. When the label element is clicked, the input
element should be activated.

To achieve this, a LableableNode base class is introduced to provide an
interface for "labelable" elements to handle mouse events on their
associated labels. This not only allows clicking the label to activate
the input, but dragging the mouse from the label to the input (and vice-
versa) while the mouse is clicked will also active the label.

As of this commit, this infrastructure is not hooked up to any elements.
2021-04-04 16:13:25 +02:00
..
BlockBox.cpp LibWeb: Stop scrolling above content in BlockBox 2021-03-03 21:48:51 +01:00
BlockBox.h LibWeb: Return whether handle_mousewheel was handled 2021-03-02 13:20:03 +01:00
BlockFormattingContext.cpp LibWeb: Compute position of relative blocks before placing them 2021-03-30 22:21:46 +02:00
BlockFormattingContext.h LibWeb: Compute position of relative block elements 2021-03-29 19:56:23 +02:00
Box.cpp LibWeb: Support rendering background images with 'background-repeat' 2021-04-03 11:24:33 +02:00
Box.h LibWeb: Add bordered_rect() and padded_rect() helpers in Layout::Box 2021-02-22 18:52:58 +01:00
BoxModelMetrics.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
BoxModelMetrics.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
BreakNode.cpp LibWeb: Add a line box fragment for <br> nodes 2021-04-02 20:36:02 +02:00
BreakNode.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
ButtonBox.cpp LibWeb: Remove low-hanging LibGUI fruit from LibWeb 2021-02-10 09:13:29 +01:00
ButtonBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
CanvasBox.cpp LibWeb: Remove low-hanging LibGUI fruit from LibWeb 2021-02-10 09:13:29 +01:00
CanvasBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
CheckBox.cpp LibWeb: Remove low-hanging LibGUI fruit from LibWeb 2021-02-10 09:13:29 +01:00
CheckBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
FlexFormattingContext.cpp LibWeb: Very basic support for CSS flex-direction 2021-01-18 20:20:24 +01:00
FlexFormattingContext.h LibWeb: Add a very naive Layout::FlexFormattingContext :^) 2021-01-18 20:20:13 +01:00
FormattingContext.cpp LibWeb: Create a new BFC when the overflow is neither visible nor clip 2021-03-30 22:21:46 +02:00
FormattingContext.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
FrameBox.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
FrameBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
ImageBox.cpp LibWeb: Remove low-hanging LibGUI fruit from LibWeb 2021-02-10 09:13:29 +01:00
ImageBox.h LibWeb: Add Frame::ViewportClient and use it for Layout::ImageBox 2021-01-30 12:29:11 +01:00
InitialContainingBlockBox.cpp LibWeb: Support rendering background images with 'background-repeat' 2021-04-03 11:24:33 +02:00
InitialContainingBlockBox.h LibWeb: Make tiled backgrounds scroll with content 2021-03-07 13:49:20 +01:00
InlineFormattingContext.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
InlineFormattingContext.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
InlineNode.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
InlineNode.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Label.cpp LibWeb: Add "Label" to be the layout node for HTMLLabelElement 2021-04-04 16:13:25 +02:00
Label.h LibWeb: Add "Label" to be the layout node for HTMLLabelElement 2021-04-04 16:13:25 +02:00
LabelableNode.h LibWeb: Add "Label" to be the layout node for HTMLLabelElement 2021-04-04 16:13:25 +02:00
LayoutPosition.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
LayoutPosition.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
LineBox.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
LineBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
LineBoxFragment.cpp LibWeb: Remove low-hanging LibGUI fruit from LibWeb 2021-02-10 09:13:29 +01:00
LineBoxFragment.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
ListItemBox.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
ListItemBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
ListItemMarkerBox.cpp LibWeb: Remove low-hanging LibGUI fruit from LibWeb 2021-02-10 09:13:29 +01:00
ListItemMarkerBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Node.cpp LibWeb: Store computed CSS value of background-repeat 2021-04-03 11:24:33 +02:00
Node.h LibWeb: Return whether handle_mousewheel was handled 2021-03-02 13:20:03 +01:00
RadioButton.cpp LibWeb: Do not assume grouped radio buttons have the same parent 2021-04-04 16:13:25 +02:00
RadioButton.h LibWeb: Add support for HTML input type=radio 2021-04-03 15:39:46 +02:00
ReplacedBox.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
ReplacedBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
SVGBox.cpp LibWeb: Remove low-hanging LibGUI fruit from LibWeb 2021-02-10 09:13:29 +01:00
SVGBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
SVGGraphicsBox.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
SVGGraphicsBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
SVGPathBox.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
SVGPathBox.h Libraries: Add missing headers 2021-01-22 21:49:54 +01:00
SVGSVGBox.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
SVGSVGBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
TableBox.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
TableBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
TableCellBox.cpp LibWeb: Anonymous table cells should have colspan=1 2021-02-06 23:27:03 +01:00
TableCellBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
TableFormattingContext.cpp LibWeb: Remove a whole bunch of unnecessary #includes 2021-02-10 09:13:29 +01:00
TableFormattingContext.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
TableRowBox.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
TableRowBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
TableRowGroupBox.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
TableRowGroupBox.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
TextNode.cpp LibWeb: Remove low-hanging LibGUI fruit from LibWeb 2021-02-10 09:13:29 +01:00
TextNode.h LibWeb: Add fast_is<T>() for some DOM and layout node subclasses 2021-01-17 14:42:50 +01:00
TreeBuilder.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
TreeBuilder.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00