Add more context to the pseudoElement tag name.

Currently the tagName for a pseudoElement is <pseudo>. This doesn't help if
there are several pseudo elements in the tree. This CL updates the tagName
to be <pseudo:before> or <pseudo:after> depending on the type of pseudoElement.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182601 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use ExceptionState to throw exceptions when converting arrays

In the to*NativeArray(), toImplArray() and toImplArguments() helpers,
throw all exceptions via an ExceptionState& argument.

To facilitate this, also add an ExceptionState& argument to the various
NativeValueTraits<>::nativeValue() implementations, and add a
V8StringValue::prepare() variant that takes an ExceptionState& argument.

BUG=413257

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182602 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Introducing the WebServiceWorkerCache.

This CL provides the new WebServiceWorkerCache object, which connects the
ServiceWorker Cache between blink and content. There's two notable exceptions
in the implementation; the various Cache.add() and Cache.addAll() methods are
not implemented (they should do fetches in blink and provide the responses to
this API through the batch call), and Response bodies via blobs is not implemented.

R=dominicc@chromium.org,falken@chromium.org,jkarlin@chromium.org
BUG=399178

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182604 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Made double-tap zoom work in pinch virtual viewport mode. (Blink-interface)

Note: This is part 1/3 in a 3-sided patch. This CL contains interface
changes only.

On the Blink side:
The clamping method used by computeScaleAndScrollForBlockRect now
uses a new method PinchViewport::clampDocumentOffsetAtScale to clamp
the requested viewport offset taking into account the inner and outer
viewports. Added copies of AutoZoom tests that run with virtual-
viewport turned on.

Also added an overload of applyViewportDeltas, called in virtual
viewport mode only, that applies the inner and outer deltas along
page scale in one shot. This makes the viewport layers a special case
again in that their scroll offsets are set through this call, rather
than the standard 'did_scroll' callback of most layers. This is needed
since the scroll offsets may be invalid until the page scale is
applied so this is handled in one method to prevent unintended
clamping.

On the Compositor side:
Calls the appropriate applyViewportDeltas based on which pinch mode
we're running in. The page scale animation now prefers to scroll the
inner viewport first, scrolling the outer only when the inner has
reached its scroll extent.

Blink-side: https://codereview.chromium.org/584833003/
Chromium-side: https://codereview.chromium.org/585063002

TBR=aelias@chromium.org,esprehn@chromium.org,jamesr@chromium.org
BUG=364106

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182605 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add WTF::String::emptyString16Bit.

This makes sure WTF::String::make16BitFrom8BitSource returns a 16-bit string,
which some callers count on even if the source string happens to be empty.

BUG=412032

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182606 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 182604 "Introducing the WebServiceWorkerCache."

> Introducing the WebServiceWorkerCache.
> 
> This CL provides the new WebServiceWorkerCache object, which connects the
> ServiceWorker Cache between blink and content. There's two notable exceptions
> in the implementation; the various Cache.add() and Cache.addAll() methods are
> not implemented (they should do fetches in blink and provide the responses to
> this API through the batch call), and Response bodies via blobs is not implemented.
> 
> R=dominicc@chromium.org,falken@chromium.org,jkarlin@chromium.org
> BUG=399178
> 
> Review URL: https://codereview.chromium.org/433793002

TBR=gavinp@chromium.org

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

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