Split more files off StyleResolver.

Move MatchResult (and minions), MatchedPropertiesCache, and MediaQueryResult
into their own files.

BUG=237268
R=eae@chromium.org, eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154133 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fixing Canvas2DLayerBridge to handle lost graphics contexts

This patch detects lost contexts and attempts to restore canvas layers
to a usable state, whenever possible. If the layer can not be recovered
All operation that draw to and read from the canvas are skipped.

BUG=240881,226928,237799
R=senorblanco@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154134 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Only set up scroll bar layers if we have created the layers.

BUG=b/9771096

Review URL: https://chromiumcodereview.appspot.com/18343004

git-svn-id: svn://svn.chromium.org/blink/trunk@154135 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove dependancy on StyleResolver and StyleResolverState from ElementRuleCollector

This makes ElementRuleCollector slightly more explicit about
what it uses.

I discovered this dependency inversion when looking at breaking
style-sharing out into its own class.  Only with the recent
removal of ElementResolveContext from StyleResolverState was
this possible, but I think the final result makes it clear
what ElementRuleCollector is modifying and what it isn't.

Eventually I think we should consider making the rule-matching
parts of the style resolution system not modify the resulting
style object, and instead save off whatever bits they'd like to
twiddle in a separate structure which the style applying
part of the style resolution system can then act on.

BUG=259202
R=esprehn@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154136 bbb929c8-8fbe-4397-9dbb-9b2b20218538