Basic console error messages for subresource integrity.

Subresource integrity is behind an experimental flag in blink (see
https://codereview.chromium.org/566083003). This CL adds in some useful
console error messages when things go wrong, such as non-matching
integrity values or an unparsable integrity attribute.

R=mkwst@chromium.org

BUG=355467

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183000 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r182920

http://src.chromium.org/viewvc/blink?view=revision&revision=182920

BUG=334269
TBR=dominik.rottsches@intel.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183001 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r182920

http://src.chromium.org/viewvc/blink?view=revision&revision=182920

BUG=334269
TBR=dominik.rottsches@intel.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183002 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r182920

http://src.chromium.org/viewvc/blink?view=revision&revision=182920

BUG=334269
TBR=dominik.rottsches@intel.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183003 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r182920

http://src.chromium.org/viewvc/blink?view=revision&revision=182920

BUG=334269
TBR=dominik.rottsches@intel.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183004 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Should remove struct HitRegionOptionsInternal.

We don't need the struct because we already have IDL dictionary support.

BUG=none
TEST=existing tests

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183005 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix pixelated HiDPI Mac widgets with impl-side painting

When drawing the native controls to a SkiaBitLocker, tell the bit locker
about the target device scale factor, so that it will record a higher (or
lower, if appropriate) resolution bitmap to play back on the painting
thread.

Also, specify a clip rect for progress bars, since that was missed in or
updated after the previous patch.

The ability to create a SkiaBitLocker without a clip rect will be removed
soon.

BUG=408557

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

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

BUG=418091
TEST=
TBR=zmo@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183007 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r182991

http://src.chromium.org/viewvc/blink?view=revision&revision=182991

BUG=418071
TBR=eae@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183009 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix caret rect calculations after r180941

Blink r180941 changed FrameSelection to use Caret's invalidation rect
calculation, which was subtly different in that it jumped to the
caret's containing block without adjusting for the possible offsets
involved. This leads to the caret being improperly invalidated in
cases such as an input that scrolls its overflow.

This patch extracts the code from CaretBase::updateCaretRect, which
does do the right adjustment, and reuses it in CaretBase::invalidateLocalCaretRect.

BUG=416534
R=jchaffraix@chromium.org, wangxianzhu@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183010 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Sheriff-o-matic navigation between failure stream and examine pages

This is the first step in using client-side routing for
permalinking/history. You can move back and forward between trees and
"examine" pages, although for any given failure group, the specific test
and bot (if there are multiple) is not remembered or linked to yet.


The magic happens in ct-router, ct-view, and ct-view-handler.

ct-router drew heavily from esprehn's CodeReview tool, before he
removed his custom router. Unlike some other routers, ct-router doesn't
destroy & recreate views when navigating (thus helping us retain page state)
and uses /slash/URLs, not #hashes.

ct-view performs path matching and binds variables to its first child as
attributes.

ct-view-handler, when included in a component, neuters <a href> links in
that component. The links then defer to ct-router instead of navigating
directly.

RUNNING

This is up and running at http://sheriff-o-matic-router.appspot.com.
Please try to break it. The objective, and the problem, with this
approach is that we rely on the URL to indicate which results to show,
instead of just pass the objects to be displayed directly to the components
that use them. So the router approach means the app becomes more fragile.
Kind of.

python -m SimpleHTTPServer won't work here. Use "dev_appserver.py ."


Example URLs (will become stale):
Blink failures: http://sheriff-o-matic-router.appspot.com/blink
Specific failure: http://sheriff-o-matic-router.appspot.com/blink/failure/ash_unittests%3AVirtualKeyboardUsabilityExperimentTest.VirtualKeyboardWindowTest
Trooper failure: http://sheriff-o-matic-router.appspot.com/trooper/failure/cq_latency%3A%3Achromium

BUG=400400
R=ojan@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183012 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused WGC3D swap completion callback API

BUG=417945

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183013 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Pass GlyphBounds struct into SimpleShaper

Change SimpleShaper to pass an optional GlypBounds struct instead of
conditionally computing and populating the bounds directly on the
shaper based on the accountForGlyphBounds parameter.

BUG=418570
R=pdr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183014 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Test of uncontrolled page doing a fetch, which currently hits the sw.

This fails the test, as it should.

BUG=417351

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183015 bbb929c8-8fbe-4397-9dbb-9b2b20218538
ServiceWorker: Add constructor(sequence<sequence<ByteString>>) to Headers

The IDL compiler now supports nested sequence for arguments. Let's use it
instead of Dictionary. We still need a constructor that takes Dictionary
because we don't support OpenEndedDictionary yet.

Tests under http/tests/serviceworker cover this change.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183016 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use CSSValueIDs for CSSParserFunction names

This patch replaces the CSSParserString CSSParserFunction::name with a
CSSValueID id. Currently all the users of the name have to do a string
comparison, which makes the relevant parsing code comparatively messy.
Using CSSValueID here make functions behave the same way as regular
keywords.

As a result, we can now easily move the transform parsing code into the
CSSPropertyParser, which currently resides in BisonCSSParser-in.cpp due
to using the SWITCH/CASE code generation (in fact we can remove this
code generation from BisonCSSParser-in.cpp completely).

BUG=404023

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183017 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove CXX_VARIADIC_TEMPLATES compiler feature flag

This flag is never used and variadic templates are now allowed on all the supported platforms.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183018 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Cut JS frames out of the legacy timeline.

BUG=363976

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183019 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove contentType check in encrypted-media-needkey.html.

This check will be restored after the 'needkey' is renamed to 'encrypted'.

BUG=224786

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183020 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r183006

http://src.chromium.org/viewvc/blink?view=revision&revision=183006

BUG=408557
TBR=ccameron@chromium.org

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

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