Skip to content

Tweak cssom #915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2025
Merged

Tweak cssom #915

merged 2 commits into from
Jul 24, 2025

Conversation

karlseguin
Copy link
Collaborator

The only functionality change is adding a named_set to the CSSStyleDeclaration so that styles can be set (named_get was already defined)

Combine the StringHashMapUnmanaged + ArrayListUnmanaged into a single StringArrayHashMapUnmanaged.

Use file structs, because @import("css_style_declaration.zig").CSSStyleDeclaration is a bit tedious.

Various micro-optimization around parsing CSS, e.g. ascii.eqlIgnoreCase in loops replaced by 1 lowercase + N*mem.eql.

The only functionality change is adding a `named_set` to the CSSStyleDeclaration
so that styles can be set (`named_get` was already defined)

Combine the StringHashMapUnmanaged + ArrayListUnmanaged into a single
StringArrayHashMapUnmanaged.

Use file structs, because @import("css_style_declaration.zig").CSSStyleDeclaration
is a bit tedious.

Various micro-optimization around parsing CSS, e.g. ascii.eqlIgnoreCase in loops
replaced by 1 lowercase + N*mem.eql.
@karlseguin karlseguin merged commit 02fe46d into main Jul 24, 2025
10 checks passed
@karlseguin karlseguin deleted the css_tweaks branch July 24, 2025 11:28
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant