Skip to content

Web: forbid additional functions in favor of caching them#3219

Merged
daxpedda merged 1 commit into
rust-windowing:masterfrom
daxpedda:web-style
Nov 10, 2023
Merged

Web: forbid additional functions in favor of caching them#3219
daxpedda merged 1 commit into
rust-windowing:masterfrom
daxpedda:web-style

Conversation

@daxpedda
Copy link
Copy Markdown
Member

Follow-up from here: #3218 (comment).
Let's not repeatedly call things that should be cached.

This is a bit weird because HtmlElement.style vs Window.getComputedStyle isn't the same, but that's why we should probably not use HtmlElement.style at all.

@daxpedda daxpedda merged commit eab982c into rust-windowing:master Nov 10, 2023
@kchibisov kchibisov mentioned this pull request Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant