summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Position.cpp
AgeCommit message (Collapse)Author
2022-09-06LibWeb+LibJS: Make the EventTarget hierarchy (incl. DOM) GC-allocatedAndreas Kling
This is a monster patch that turns all EventTargets into GC-allocated PlatformObjects. Their C++ wrapper classes are removed, and the LibJS garbage collector is now responsible for their lifetimes. There's a fair amount of hacks and band-aids in this patch, and we'll have a lot of cleanup to do after this.
2021-09-08LibWeb: Remove unnecessary DOM::Position destructorAndreas Kling
2021-06-24AK: Rename downcast<T> => verify_cast<T>Andreas Kling
This makes it much clearer what this cast actually does: it will VERIFY that the thing we're casting is a T (using is<T>()).
2021-06-01Everywhere: codepoint => code pointAndreas Kling
2021-05-21LibWeb: Frame/Position: Implement cursor increment/decrement methodsMax Wipfli
This introduces methods to increment and decrement the cursor position. This is non-trivial as the cursor position is specified in bytes rather than codepoints. Thus, it sometimes needs to be incremented or decremented by more than one, depending on the codepoint to "jump over". Because the cursor blink cycle needs to be reset after moving the cursor, methods calling the ones in DOM::Position are implemented in Frame. Furthermore, this allows the cursor_position() getter to stay const. :^) Additionally, it adds a offset_is_at_end_of_node() method which checks if the current offset points to the end of the node.
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling