mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +00:00
LibWeb: Port DOM::Node from DeprecatedString
This commit is contained in:
parent
89bbf53745
commit
a8f5ebeddd
8 changed files with 26 additions and 27 deletions
|
@ -7,7 +7,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Badge.h>
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/FlyString.h>
|
||||
#include <AK/JsonObjectSerializer.h>
|
||||
#include <AK/RefPtr.h>
|
||||
|
@ -161,7 +160,7 @@ public:
|
|||
const HTML::HTMLElement* enclosing_html_element() const;
|
||||
const HTML::HTMLElement* enclosing_html_element_with_attribute(FlyString const&) const;
|
||||
|
||||
DeprecatedString child_text_content() const;
|
||||
String child_text_content() const;
|
||||
|
||||
Node& root();
|
||||
Node const& root() const
|
||||
|
@ -242,7 +241,7 @@ public:
|
|||
WebIDL::ExceptionOr<String> serialize_fragment(DOMParsing::RequireWellFormed) const;
|
||||
|
||||
void replace_all(JS::GCPtr<Node>);
|
||||
void string_replace_all(DeprecatedString const&);
|
||||
void string_replace_all(String const&);
|
||||
|
||||
bool is_same_node(Node const*) const;
|
||||
bool is_equal_node(Node const*) const;
|
||||
|
@ -251,7 +250,7 @@ public:
|
|||
|
||||
bool is_uninteresting_whitespace_node() const;
|
||||
|
||||
DeprecatedString debug_description() const;
|
||||
String debug_description() const;
|
||||
|
||||
size_t length() const;
|
||||
|
||||
|
@ -707,7 +706,7 @@ private:
|
|||
void append_child_impl(JS::NonnullGCPtr<Node>);
|
||||
void remove_child_impl(JS::NonnullGCPtr<Node>);
|
||||
|
||||
static Optional<StringView> first_valid_id(DeprecatedString const&, Document const&);
|
||||
static Optional<StringView> first_valid_id(StringView, Document const&);
|
||||
static ErrorOr<void> append_without_space(StringBuilder, StringView const&);
|
||||
static ErrorOr<void> append_with_space(StringBuilder, StringView const&);
|
||||
static ErrorOr<void> prepend_without_space(StringBuilder, StringView const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue