DescriptionDon't trigger full active style update on styleSheets access.
Element.styleSheets and ShadowRoot.styleSheets need to be made up-to-
date on access. We used to do a full active style update, but re-
collecting the stylesheet list should be enough, leaving the active
style dirty flags intact.
We introduce a dirty-flag for the stylesheet list in
StyleSheetCollection to avoid repeatedly re-collecting this list while
the active style is still dirty.
This coincidentally fixes issue 722826 since we do not collect
stylesheets in import shadow trees as part of the active style update,
but is now made up-to-date on request when accessing the styleSheets
collection on shadow roots inside import documents.
This fixes the performance issue 717506.
R=meade@chromium.org
BUG=717506, 722826
Review-Url: https://codereview.chromium.org/2884993002
Cr-Commit-Position: refs/heads/master@{#473846}
Committed: https://chromium.googlesource.com/chromium/src/+/e1719ffa41c44d3434095850fee7ffa5b6e57c4f
Patch Set 1 #Patch Set 2 : Rebased #Patch Set 3 : Not clearing document_scope_dirty_ flag in import styleSheets anymore. #Messages
Total messages: 15 (11 generated)
|