mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-04 08:01:51 +00:00
LibWeb/DOM: Rename ElementReference to AbstractElement
This isn't some kind of identifier, it's a handle on an actual Element or PseudoElement.
This commit is contained in:
parent
e7c2f0dd52
commit
ce380a59c7
Notes:
github-actions[bot]
2025-06-19 11:37:42 +00:00
Author: https://github.com/AtkinsSJ
Commit: ce380a59c7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5132
Reviewed-by: https://github.com/tcl3
10 changed files with 73 additions and 23 deletions
|
@ -11,7 +11,7 @@
|
|||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/CSS/CSSStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleProperty.h>
|
||||
#include <LibWeb/DOM/ElementReference.h>
|
||||
#include <LibWeb/DOM/AbstractElement.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
|
@ -50,8 +50,8 @@ public:
|
|||
void set_parent_rule(GC::Ptr<CSSRule> parent) { m_parent_rule = parent; }
|
||||
|
||||
// https://drafts.csswg.org/cssom/#cssstyledeclaration-owner-node
|
||||
Optional<DOM::ElementReference> owner_node() const { return m_owner_node; }
|
||||
void set_owner_node(Optional<DOM::ElementReference> owner_node) { m_owner_node = move(owner_node); }
|
||||
Optional<DOM::AbstractElement> owner_node() const { return m_owner_node; }
|
||||
void set_owner_node(Optional<DOM::AbstractElement> owner_node) { m_owner_node = move(owner_node); }
|
||||
|
||||
// https://drafts.csswg.org/cssom/#cssstyledeclaration-updating-flag
|
||||
[[nodiscard]] bool is_updating() const { return m_updating; }
|
||||
|
@ -80,7 +80,7 @@ private:
|
|||
GC::Ptr<CSSRule> m_parent_rule { nullptr };
|
||||
|
||||
// https://drafts.csswg.org/cssom/#cssstyledeclaration-owner-node
|
||||
Optional<DOM::ElementReference> m_owner_node {};
|
||||
Optional<DOM::AbstractElement> m_owner_node {};
|
||||
|
||||
// https://drafts.csswg.org/cssom/#cssstyledeclaration-computed-flag
|
||||
bool m_computed { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue