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

LibWeb: Fix insert/delete rule invalidation for adopted style sheets #3217

Conversation

kalenikaliaksandr
Copy link
Member

Invalidaiton for adopted style sheets was broken because we had an assumption that "active" style sheet is always attached to StyleSheetList which is not true for adopted style sheets. This change addresses that by keeping track of all documents/shadow roots that own a style sheet and notifying them about invalidation instead of going through the StyleSheetList.

@kalenikaliaksandr kalenikaliaksandr force-pushed the fix-adopted-style-sheets-invalidation branch 3 times, most recently from 56085d8 to 9802d5a Compare January 10, 2025 22:57
Invalidation for adopted style sheets was broken because we had an
assumption that "active" style sheet is always attached to
StyleSheetList which is not true for adopted style sheets. This change
addresses that by keeping track of all documents/shadow roots that own
a style sheet and notifying them about invalidation instead of going
through the StyleSheetList.
@kalenikaliaksandr kalenikaliaksandr force-pushed the fix-adopted-style-sheets-invalidation branch from 9802d5a to 8b7d1af Compare January 11, 2025 23:21
@kalenikaliaksandr kalenikaliaksandr merged commit 9869181 into LadybirdBrowser:master Jan 13, 2025
8 checks passed
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.

4 participants