Use the StyleResolverParentScope for ShadowRoot

In r170168 I made pushing the parent scopes lazy for Elements, but I
didn't make it lazy for ShadowRoot. This meant that you could trigger a
style recalc on a single element in a ShadowRoot and then we'd push the
scopes out of order, where we'd push all the ShadowRoots on the way down
and then push all the elements at the end.

I wasn't able to show any rendering errors, but by inspection it's wrong
and it appears it was making us go through the
ScopedStyleTree::resolveStyleCache code path more often than needed.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170312 bbb929c8-8fbe-4397-9dbb-9b2b20218538
SRI: Add the 'integrity' attribute, and a SubresourceIntegrity runtime flag.

This patch adds a new flag to begin experimentation with the Subresource
Integrity specification[1], and begins adding the minimal amount of
functionality so we can test that the flag is working. That turns out to
be the 'integrity' attribute on various HTML elements that we'll use
later in order to do the actual verification.

Intent to Implement at [2].

[1]: http://w3c.github.io/webappsec/specs/subresourceintegrity/
[2]: https://groups.google.com/a/chromium.org/d/msg/blink-dev/hTDUpMk_TV8/t_rjlkKfgGgJ

BUG=355467

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170313 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enable Media query evaluation in the preload scanner

This CL enables Media Query evaluation inside the preload scanner, without joining the main thread.
That is to enable resource fetching based on the media attribute, without hampering future resource fetching improvements.

Major changes:
* Added a MediaValues class that "freezes" the various media values needed for MQE when it is initialized.
* Initialize MediaValues and provide them to the PreloadScanner during its initialization.
* Run MQE inside the PreloadScanner, according to provided MediaValues.
* Removed mediaAttribute passing to the HTMLResourcePreloader, that runs on the main thread.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170314 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Cleanup run-bindings-tests and use filecmp (23% faster r-b-t)

The use of filecmp:
* speeds up r-b-t by 23% (if no diffs): (885 ms vs. 1.150 sec)
* uses only 1 process (if no diffs): 30 => 1
* if diffs, same speed
(can't measure difference, because filecmp is basically instantaneous on my machine)

Also some cleanup:
* remove dead code
* simplify temp file handling (caused build bot failures previously)
* don't catch exceptions, so easier to debug errors in CG
(because it's just one process now)

Currently r-b-t launches a separate diff(1) process for each file it compares.
Python has a built-in diff facility, which is extremely fast and avoids other processes.
This should make a big difference on Windows, meaning faster uploads for
Windows developers and less load on build bots.

Also a lot of the code is no longer necessary, after Terry's simplifications.
We can eliminate all the redundant temp file handling, and just need a simple
temp dir class.

R=haraken
BUG=341748

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170315 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix how navigator reveals and renames files after recent refactorings.

R=pfeldman@chromium.org, pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170316 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix how highlighted element title is shown when element is highlighted in inspected page.

R=pfeldman,apavlov

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170317 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Grid Layout] the "grid-template-areas" is not identified as computable property.

The "grid-template-areas" property is a computable area, defined in the
CSSComputedStyleDeclaration class with an specific computed value. However,
it's not shown by the Web Inspector in the corresponding Computed tab.

It seems that the root cause of this issue is that the property is not
present in the CSSComputedStyleDeclaration::staticComputableProperties.


BUG=79180

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170318 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Build fix after r170314

r170314 broke oilpan's build. This CL fixes it.

TBR=ager

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170319 bbb929c8-8fbe-4397-9dbb-9b2b20218538
CSS Transforms: Implement backface-visibility

Implements backface-visibility as defined in CSS Transforms[1]. Behavior is
identical to -webkit-backface-visibility.

Note, this property is guarded by the CSSTransformsUnprefixed runtime feature
(enabled only for testing).

[1] http://www.w3.org/TR/css3-transforms/

NOTRY=true
BUG=154772

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170320 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove flaky expectations for event_order_loadstart_progress.html

No new failures since the speculative fix was committed.

BUG=333880

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

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