Use deferred style recalc for non-blocking stylesheets.

Non-blocking stylesheets like alternate stylesheets cause a synchronous style
recalc when finished loading. This is quite the opposite of what one would
expect as these stylesheets should not contribute to the style at all. We use
deferred style recalc to batch up the style recalcs instead.

It might be possible to further improve this by not doing a style recalc at
all, but that requires that we detect when a non-blocking stylesheet becomes
relevant by another link element setting the preferred stylesheet set to the
same name as that of an alternate stylesheet already added as non-blocking.

R=dglazkov@chromium.org
BUG=368659

Review URL: https://codereview.chromium.org/260713005

git-svn-id: svn://svn.chromium.org/blink/trunk@173012 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed
tree: d89e7e90d612c38d3640ce59833cc5375af3ca83
  1. third_party/