Delay construction of StyleResolverState until after style sharing.

In some (synthetic) cases, style sharing is so efficient that the
construction of StyleResolverState negatively impacts performance.
Since we only need an ElementResolveContext (plus some parent information)
to determine style sharing, we can delay the StyleResolverState
construction until after that.

R=rune@opera.com
BUG=437281

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

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