mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibWeb: Implement the "record current states and values" Editing algo
This commit is contained in:
parent
2c51ed8dec
commit
c90c5aad29
Notes:
github-actions[bot]
2024-12-21 18:17:34 +00:00
Author: https://github.com/gmta
Commit: c90c5aad29
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2991
3 changed files with 258 additions and 16 deletions
|
@ -10,12 +10,17 @@
|
|||
|
||||
namespace Web::Editing {
|
||||
|
||||
// https://w3c.github.io/editing/docs/execCommand/#properties-of-commands
|
||||
struct CommandDefinition {
|
||||
FlyString const& command;
|
||||
Function<bool(DOM::Document&, String const&)> action {};
|
||||
Function<bool(DOM::Document const&)> indeterminate {};
|
||||
Function<bool(DOM::Document const&)> state {};
|
||||
Function<String(DOM::Document const&)> value {};
|
||||
Optional<CSS::PropertyID> relevant_css_property {};
|
||||
|
||||
// https://w3c.github.io/editing/docs/execCommand/#inline-command-activated-values
|
||||
Vector<String> inline_activated_values {};
|
||||
};
|
||||
|
||||
Optional<CommandDefinition const&> find_command_definition(FlyString const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue