Produce toClassName(const RefPtr<T>&) by DEIFNE_NODE_TYPE_CASTS.

We can remove '.get()' in toClassName(refPtr.get()) with this conversion
function.
We produce a function with "const RefPtr<any type>&" argument, not "const
RefPtr<Node>&" because "const RefPtr<Node>&" doesn't accept
RefPtr<ContainerNode>, etc.

BUG=309516
TEST=none; no behavior changes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160179 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web Animations CSS: Fix crashing -webkit-mask-box-image test

Special cased animated shorthand properties to depend on the Web Animations
runtime flag.
virtual/web-animations-css/animations/cross-fade-webkit-mask-box-image.html
now has image failure instead of crashing.
Image failure due to: crbug.com/309962

BUG=257591

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160180 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Test that substituting something different to window.JSON doesn't break XMLHttpRequest

Clarified on the WHATWG version.
http://xhr.spec.whatwg.org/#json-response-entity-body

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160181 bbb929c8-8fbe-4397-9dbb-9b2b20218538
MediaStream API: Fix lifetime issues
After some recent refactorings some life-time assumptions are no longer true so in this patch I have added proper cleanup of a pointer.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160182 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL compiler: move EventHandler null check out of generated bindings

Per request at:
https://codereview.chromium.org/30493002/#msg4
...this moves some code out of generated bindings and into bindings/v8.

BUG=239771

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160183 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Grid Layout] Cache track breadth min/max content types

Profiling shows we repeatedly hit the GridLength isLength() method and
the is{Min,Max}Content() methods of the actual Length object. By
caching this information, which won't change until we set again the
grid lengths, we can improve the auto-grid-lots-of-data.html test by
about a 6% (39 runs/s -> 41.5 runs/s).

BUG=234211

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160184 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move the follwing members from HTMLPlugInImageElement to HTMLPlugInElement.

 - m_shouldPreferPlugInsForImages and shouldPreferPlugInsForImages()
 - isImageType()
 - m_serviceType
 - m_url

This is a part of tasks to merge HTMLPlugInImageELement into HTMLPlugInElement.
Only HTMLPlugInImageElement inherits from HTMLPlugInElement.

BUG=309978

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160185 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Removing сolon from cURL command header.

BUG=301787

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160186 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Grid Layout] Do log(n) search in the named line vectors when positioning named line spans

Implement the suggested FIXMEs and do a log search in the named line
vectors. This maintains the previous (somewhat tricky) behavior by
using std::lower_bound and std::upper_bound. No difference in existing
performance tests, but should scale much better for big grids.

BUG=303217

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160187 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Notify the embedder when pre-cached data images are loaded.

Images with a src="data:.." don't cause any FrameLoader callbacks
to be called.

BUG=307531

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160188 bbb929c8-8fbe-4397-9dbb-9b2b20218538
MediaStream API: Cleaning up exceptions
Getting rid of some throwUninformativeAndGenericDOMException calls.
Also making sure RTCSessionDescription follows the standard.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160189 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add UseCounter for HTMLSourceElement.media

https://www.w3.org/Bugs/Public/show_bug.cgi?id=19619

By counting the number of candidate <source> elements and the number
of non-matching media attributes, we can determine what the impact of
removing the attribute from spec and implementation would be.

BUG=310006

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

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