1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

LibWeb: Add CharacterData.replaceData(offset, count, data)

Note that we don't queue mutation records or update live ranges yet,
I've left those as FIXMEs.
This commit is contained in:
Andreas Kling 2022-03-21 18:05:20 +01:00
parent e50c7de1b2
commit 24e25fe3d0
3 changed files with 42 additions and 0 deletions

View file

@ -28,6 +28,7 @@ public:
unsigned length() const { return m_data.length(); }
ExceptionOr<String> substring_data(size_t offset, size_t count) const;
ExceptionOr<void> replace_data(size_t offset, size_t count, String const&);
protected:
explicit CharacterData(Document&, NodeType, const String&);