Skip to content

[css-paint-api] Removes invalidation based on size, and allows user-a… #390

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 3 commits into from
Apr 19, 2017

Conversation

bfgeek
Copy link
Contributor

@bfgeek bfgeek commented Apr 16, 2017

…gents to cache.

Fixes #326.

I realized that explicitly placing an invalidation based on size here
was wrong, e.g. if a box changes size it has to run the "object size
negotiation" algorithm, which makes invalidating the paint() function
off size redundant.

Additionally allows user-agents to cache results from previous
invocations, and re-use. This allows UAs to re-use images between
instances if they have the same input style, concrete object size, and
input arguments.

…gents to cache.

Fixes #326.

I realized that explicitly placing an invalidation based on size here
was wrong, e.g. if a box changes size it has to run the "object size
negotiation" algorithm, which makes invalidating the paint() function
off size redundant.

Additionally allows user-agents to cache results from previous
invocations, and re-use. This allows UAs to re-use images between
instances if they have the same input style, concrete object size, and
input arguments.
@bfgeek
Copy link
Contributor Author

bfgeek commented Apr 16, 2017

@tabatkins @dbaron Does this make sense? We can talk about it at houdini tues.

@dbaron
Copy link
Member

dbaron commented Apr 18, 2017

Yeah, this looks good; when you described it in the meeting I didn't realize you'd added that additional wording.

The one minor comment is that "is expected to be run" should probably be a more normative phrase -- maybe must, although maybe should if there's a good reason for it not to be must.

@bfgeek
Copy link
Contributor Author

bfgeek commented Apr 19, 2017

Thanks, changed.

@bfgeek bfgeek merged commit cdd6fed into master Apr 19, 2017
@tabatkins tabatkins removed the ready label Apr 19, 2017
@plinss plinss deleted the css-paint-api-sizing branch February 17, 2018 20:40
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.

3 participants