mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
webapi.Element: make getCssProperties private
Co-authored-by: Karl Seguin <karlseguin@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user