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

Add a fast path to get computed styles from the script thread #16255

Open
ferjm opened this issue Apr 4, 2017 · 1 comment
Open

Add a fast path to get computed styles from the script thread #16255

ferjm opened this issue Apr 4, 2017 · 1 comment

Comments

@ferjm
Copy link
Member

@ferjm ferjm commented Apr 4, 2017

CC @emilio

We have window.GetComputedStyle, but it would be great to have a faster path.

@mrobinson
Copy link
Member

@mrobinson mrobinson commented May 8, 2020

I think this would also allow us to share more code between layout_2013 and layout_2020. This query is necessary for testing animations in layout_2020.

mrobinson added a commit to mrobinson/servo that referenced this issue May 9, 2020
In some cases we can just computed the resolved values for
getComputedStyle in script. This means we can answer the query without
having to wait for layout.

Fixes servo#16255.
mrobinson added a commit to mrobinson/servo that referenced this issue May 9, 2020
In some cases we can just computed the resolved values for
getComputedStyle in script. This means we can answer the query without
having to wait for layout.

Fixes servo#16255.
mrobinson added a commit to mrobinson/servo that referenced this issue May 9, 2020
In some cases we can just computed the resolved values for
getComputedStyle in script. This means we can answer the query without
having to wait for layout.

Fixes servo#16255.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.