Jelle Raaijmakers
03bcfb9b8c
LibWeb: Implement the "outdent" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
fbc0d40d2c
LibWeb: Implement the "justifyCenter/Full/Left/Right" editing commands
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
1c3251e2d5
LibWeb: Implement the "insertUnorderedList" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
26cadf06d2
LibWeb: Implement the "insertText" editing command
...
Minus the autolinking algorithm.
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
199eaf0d3e
LibWeb: Implement the "insertOrderedList" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
01ce9cb151
LibWeb: Implement the "insertImage" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
20fb7b1a49
LibWeb: Implement the "insertHTML" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
cb05ab6515
LibWeb: Implement the "insertHorizontalRule" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
c6cde85534
LibWeb: Implement the "indent" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
a12d887eb4
LibWeb: Implement the "formatBlock" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
e686328cbd
LibWeb: Implement the "unlink" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
043a28baeb
LibWeb: Implement the "underline" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
679fbb5eda
LibWeb: Implement the "superscript" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
ef8af01e1d
LibWeb: Implement the "subscript" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
8c51d6863f
LibWeb: Implement the "strikethrough" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
aee8a75c40
LibWeb: Implement the "removeFormat" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
ae12f7036b
LibWeb: Implement the "italic" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
228c66f2e1
LibWeb: Implement the "foreColor" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
1d2500e31f
LibWeb: Implement the "fontSize" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
9366a50dd3
LibWeb: Implement the "fontName" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
1b02e0dea3
LibWeb: Implement the "createLink" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
05386fe99c
LibWeb: Implement the "backColor" and "hiliteColor" editing commands
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
7736d63290
LibWeb: Implement the "forwardDelete" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
a71e999ac8
LibWeb: Implement the "bold" editing command
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
fef02036dd
LibWeb: Implement the "set the selection's value" editing algorithm
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
aeec57a440
LibWeb: Implement the "indent" and "outdent" editing algorithms
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
9750896af3
LibWeb: Implement the "push down values" editing algorithm
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
9bcf2fc0f5
LibWeb: Implement last remaining FIXME for wrap editing algorithm
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
148e465131
LibWeb: Implement remaining FIXMEs in "specified command value" algo
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
5e7a31bf60
LibWeb: Implement "move node preserving ranges" editing algorithm
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
2b6a14c5ee
LibWeb: Implement "preserves overrides" property of editing commands
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
e21ee10b3c
LibWeb: Add command state & value overrides to DOM::Document
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
67800091c5
LibWeb: Check for editability and visibility of "formattable nodes"
...
The associated spec was only partially implemented.
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
85abad30b0
LibWeb: Add explicit "active range" editing algorithm
...
This makes some of the spec implementations easier to follow and makes
it extra clear that the range is optional.
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
2987dd1060
LibWeb: Fix node insertion in split_the_parent_of_nodes()
...
If we are to insert nodes _before_ the original parent, we need to
insert them at the original parent's index, not the index before that.
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
83f48a07d4
LibWeb: Make normalize_sublists_in_node() take a Node instead of Element
...
This prevents some unnecessary casting to DOM::Element.
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
d08febcf67
LibWeb: Add Node::for_each(_inclusive)_ancestor()
...
Allows for easy iteration over the chain of ancestors for a node.
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
4323669939
LibWeb: Add Range::for_each_contained()
...
This centralizes the logic for iterating over a Range's contained nodes.
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
2466021e55
LibWeb: Rename argument to split_the_parent_of_nodes() to reflect spec
...
The spec calls it a "node list", not "nodes".
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
f4c822ee38
LibWeb: Simplify fix_disallowed_ancestors_of_node()'s usage of node
...
Commit 98df4c2b
changes the node argument to a GC::Ref<DOM::Node>, but
not all usages were updated accordingly.
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
bd2488a468
LibWeb: Make block_extend_a_range() take a GC::Ref for the range
...
This makes it more consistent with the other signatures.
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
e5b107b6b6
LibWeb: Fix typo in spec comment for non-list single line containers
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
acef5a34de
LibWeb: Remove useless move from remove_node_preserving_its_descendants
2025-01-10 23:33:35 +01:00
Jelle Raaijmakers
e64766d54d
LibWeb: Add spec links to editing command definitions
2025-01-10 23:33:35 +01:00
Aliaksandr Kalenik
cf57efd252
LibWeb: Unload fonts when adopted style sheet is removed
...
Add missing unloading step that we do for regular style sheets but
mistakenly missed for adopted style sheets.
2025-01-10 19:12:48 +03:00
Nicolas Ramz
0d92cd1f36
UI/AppKit: Add debug menu to clear all cookies
2025-01-10 14:57:26 +00:00
Aliaksandr Kalenik
d8b0b1535b
LibWeb: Skip keyframe animation update if target element isn't connected
...
Makes some pages on Github faster as previously we had to update
animation for elements in not connected shadow trees.
2025-01-10 15:41:37 +01:00
Aliaksandr Kalenik
de062e4d2c
LibWeb: Invalidate style if url changed in HTMLHyperlinkElementUtils
...
Previously, <a> elements were frequently invalidated because
`set_the_url()` was called by `reinitialize_url()`, which is a
preparation step in every HTMLHyperlinkElementUtils function. As a
result, styles were unnecessarily invalidated each time any of these
functions were invoked without changing the URL.
2025-01-10 14:35:33 +00:00
Tim Ledbetter
84b69c2387
LibWeb: Make TemporaryExecutionContext [[nodiscard]]
2025-01-10 13:21:36 +00:00
Tim Ledbetter
5d4aa15ada
LibThreading: Make MutexLocker [[nodiscard]]
2025-01-10 13:21:36 +00:00