mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
fixed self fetching for HTMLElement
This commit is contained in:
@@ -115,7 +115,7 @@ pub const HTMLElement = struct {
|
||||
},
|
||||
|
||||
pub fn get_style(e: *parser.ElementHTML, state: *SessionState) !*CSSStyleDeclaration {
|
||||
const self = try state.getNodeWrapper(HTMLElement, @ptrCast(e));
|
||||
const self = try state.getOrCreateNodeWrapper(HTMLElement, @ptrCast(e));
|
||||
return &self.style;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user