mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-05 00:21:52 +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
|
@ -1278,7 +1278,7 @@ GC::Ref<CSS::CSSStyleDeclaration> Window::get_computed_style(DOM::Element& eleme
|
|||
// 1. Let doc be elt’s node document.
|
||||
|
||||
// 2. Let obj be elt.
|
||||
Optional<DOM::ElementReference> object { element };
|
||||
Optional<DOM::AbstractElement> object { element };
|
||||
|
||||
// 3. If pseudoElt is provided, is not the empty string, and starts with a colon, then:
|
||||
if (pseudo_element.has_value() && pseudo_element.value().starts_with(':')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue