Skip to content
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

Implement calc() #5

Merged
merged 9 commits into from
May 25, 2024
Merged

Implement calc() #5

merged 9 commits into from
May 25, 2024

Conversation

tlsa
Copy link
Member

@tlsa tlsa commented Nov 26, 2022

No description provided.

@tlsa tlsa force-pushed the tlsa/calc branch 2 times, most recently from 67364ac to 05a9ed4 Compare December 3, 2022 19:39
Daniel Silverstone and others added 9 commits May 25, 2024 13:44
Co-authored-by: Michael Drake <[email protected]>
In order to permit us to share calc expressions between styles
and computed styles, without copying, we embed the calc expression
bytecode into an lwc string.  This is effectively using lwc_string
as an interned byte buffer, there may be a nicer way to do this in
the future.

Signed-off-by: Daniel Silverstone <[email protected]>
Without this we would fail to consume the bytecode belonging
to calc value storage, and treat the data instead as the next
op code, and jump beyond the end of the property dispatch
table.
The computed style handling doesn't know how to deal with them yet.
@tlsa tlsa merged commit eb2a7b5 into master May 25, 2024
4 of 6 checks passed
@tlsa tlsa deleted the tlsa/calc branch May 25, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants