mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 10:36:02 +00:00
LibWeb: Set an attribute's owning element when it is known
This commit is contained in:
parent
e01dfaac9a
commit
454d218716
Notes:
sideshowbarker
2024-07-18 02:16:33 +09:00
Author: https://github.com/trflynn89
Commit: 454d218716
Pull-request: https://github.com/SerenityOS/serenity/pull/10510
Reviewed-by: https://github.com/linusg
3 changed files with 7 additions and 6 deletions
|
@ -17,7 +17,7 @@ class Attribute final : public Node {
|
|||
public:
|
||||
using WrapperType = Bindings::AttributeWrapper;
|
||||
|
||||
static NonnullRefPtr<Attribute> create(Document&, FlyString local_name, String value);
|
||||
static NonnullRefPtr<Attribute> create(Document&, FlyString local_name, String value, Element const* = nullptr);
|
||||
|
||||
virtual ~Attribute() override = default;
|
||||
|
||||
|
@ -38,7 +38,7 @@ public:
|
|||
constexpr bool specified() const { return true; }
|
||||
|
||||
private:
|
||||
Attribute(Document&, FlyString local_name, String value);
|
||||
Attribute(Document&, FlyString local_name, String value, Element const*);
|
||||
|
||||
QualifiedName m_qualified_name;
|
||||
String m_value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue