webapi.Element: make getCssProperties private

Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
Adrià Arrufat
2026-03-14 20:18:51 +09:00
committed by GitHub
parent df5e978247
commit e2563e57f2

View File

@@ -1053,7 +1053,7 @@ pub const CssProperties = struct {
pub const CssCache = std.AutoHashMapUnmanaged(*Element, CssProperties); pub const CssCache = std.AutoHashMapUnmanaged(*Element, CssProperties);
pub fn getCssProperties(el: *Element, page: *Page, doc_sheets: ?*StyleSheetList, cache: ?*CssCache) CssProperties { fn getCssProperties(el: *Element, page: *Page, doc_sheets: ?*StyleSheetList, cache: ?*CssCache) CssProperties {
if (cache) |c| { if (cache) |c| {
if (c.get(el)) |props| return props; if (c.get(el)) |props| return props;
} }