LibWeb: Defer mouse events from TextNode to Label

A label's format is: <label>Label text</label>

So, a TextNode is created as a child of the Label node, and EventHandler
will send events to the TextNode. This changes TextNode to accept mouse
events if its parent is a Label, and to forward those events upward.
This commit is contained in:
Timothy Flynn 2021-04-03 21:48:05 -04:00 committed by Andreas Kling
commit e1b5613142
Notes: sideshowbarker 2024-07-18 20:49:55 +09:00
5 changed files with 41 additions and 8 deletions

View file

@ -182,6 +182,7 @@ class Node;
class NodeWithStyle;
class RadioButton;
class ReplacedBox;
class TextNode;
}
namespace Web {