Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-nesting] Implement CSSStyleRule::setSelectorText by re-nesting
This replaces re-parenting (in-place mutation) with re-nesting (modified deep copies), as described in CL:ABC. This fixes invalidation issues for inner (nested) rules when modifying the selectorText of an outer rule. The kScope branch will be handled by a future CL. (This is already incorrect, Issue 363019839.) Note: Somehow, this fixes the invalidation problems even though we don't actually add the affected rules to the RuleSetDiff, nor mark it unrepresentable. I'm leaving Issue 363019837 open until I understand why. Bug: 363019837 Change-Id: I5f35aaf1f04a6c018ec9beaedf835266ac38480d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6070884 Reviewed-by: Steinar H Gunderson <[email protected]> Commit-Queue: Anders Hartvoll Ruud <[email protected]> Cr-Commit-Position: refs/heads/main@{#1394135}
- Loading branch information