DescriptionMake updateStyleAndLayoutTree ready for async stylesheet update.
Introduce Document::updateActiveStyle() and corresponding
updateActiveStyle()/updateActiveStyleSheets() methods in StyleEngine to
prepare for doing active stylesheet updates as part of
updateStyleAndLayoutTree.
We move updateViewport() to updateActiveStyle() as the first step. This
is done by removing the synchronous calls to ViewportStyleResolver::
updateViewport() and instead schedule a layout tree update. In order to
trigger actual work to be done when the layout tree update happens, we
need to return true from Document::needsFullLayoutTreeUpdate() when we
need an active style update (for viewport atm).
BUG=567021
Committed: https://crrev.com/b50a2f4a9fe9733ed204f55f83a2e32727ba003d
Cr-Commit-Position: refs/heads/master@{#432182}
Patch Set 1 #Patch Set 2 : Rebased #Patch Set 3 : Rebased #
Messages
Total messages: 23 (13 generated)
|