mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Refactor "editable" and "editing host" concepts
The DOM spec defines what it means for an element to be an "editing host", and the Editing spec does the same for the "editable" concept. Replace our `Node::is_editable()` implementation with these spec-compliant algorithms. An editing host is an element that has the properties to make its contents effectively editable. Editable elements are descendants of an editing host. Concepts like the inheritable contenteditable attribute are propagated through the editable algorithm.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
f88c13a58c
commit
1c55153d43
@@ -100,8 +100,6 @@ public:
|
||||
bool indeterminate() const { return m_indeterminate; }
|
||||
void set_indeterminate(bool);
|
||||
|
||||
bool is_mutable() const { return m_is_mutable; }
|
||||
|
||||
void did_pick_color(Optional<Color> picked_color, ColorPickerUpdateState state);
|
||||
|
||||
enum class MultipleHandling {
|
||||
@@ -339,9 +337,6 @@ private:
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-fe-dirty
|
||||
bool m_dirty_value { false };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/input.html#the-input-element:concept-fe-mutable
|
||||
bool m_is_mutable { true };
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/input.html#the-input-element:legacy-pre-activation-behavior
|
||||
bool m_before_legacy_pre_activation_behavior_checked { false };
|
||||
bool m_before_legacy_pre_activation_behavior_indeterminate { false };
|
||||
|
||||
Reference in New Issue
Block a user