mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
webapi.Element: use dot notation
Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
@@ -1148,7 +1148,7 @@ pub fn hasPointerEventsNoneCached(self: *Element, page: *Page, cache: ?*CssCache
|
|||||||
const doc_sheets = page.document.getStyleSheets(page) catch null;
|
const doc_sheets = page.document.getStyleSheets(page) catch null;
|
||||||
var current: ?*Element = self;
|
var current: ?*Element = self;
|
||||||
while (current) |el| {
|
while (current) |el| {
|
||||||
const props = getCssProperties(el, page, doc_sheets, cache);
|
const props = el.getCssProperties(page, doc_sheets, cache);
|
||||||
if (props.pointer_events_none) return true;
|
if (props.pointer_events_none) return true;
|
||||||
current = el.parentElement();
|
current = el.parentElement();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user