DescriptionUpdate styleSheets list in import without active style update.
Querying document.styleSheets should not need to do a full active style
update. This CL is implementing a light-weight update of the styleSheets
list querying document.styleSheets on html import documents.
We collect and swap style_sheets_for_style_sheet_list_ for the
collection of the import document without touching the active style or
the dirty flags for active style on the master document. This is
straightforward for import documents as they don't have an active
stylesheet list themselves. Doing this optimization for top level
documents and shadow trees is the next step, but we need to be more
careful for those cases to keep the dirtyness without having to re-
collect for the styleSheets api every time.
BUG=717506
Review-Url: https://codereview.chromium.org/2880303002
Cr-Commit-Position: refs/heads/master@{#472751}
Committed: https://chromium.googlesource.com/chromium/src/+/b5049772af9303fbb1dcdfe233900dfc80700ca1
Patch Set 1 #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 23 (13 generated)
|