Add compile-time flag for oilpan.

First patch to prepare for landing the Oilpan infrastructure files.

R=abarth@chromium.org, darin@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163403 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Introduce DEFINE_DOCUMENT_TYPE_CASTS, and use it

As a step to use DEFINE_TYPE_CASTS, this cl introduce DEFINE_DOCUMENT_TYPE_CASTS.
It's used by HTMLDocument, ImageDocument, PluginDocument, and SVGDocument in order to replace
manual toFoo() with generated toFoo() which supports all cast functions.

BUG=309516

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

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

- Remove unnecessary forward declaration. That is part of WebMIDIClient
interface.
- Remove the static create function.
- Just expose the constructor instead.

BUG=None
TEST=webkit_unit_tests
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163405 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Improve precision of error messages from failed CORS checks.

Identify when the incoming Access-Control-Allow-Origin header value
contains multiple origin tokens and report this as not allowed.  If it
doesn't and the origin is valid, provide an error message that informs
of a mismatch between the origin strings.

The previous error message could lead users into thinking that
(white)lists of origins were supported. It is not by the spec nor
current implementations.

Removed a nearby and related FIXME; not a current concern.

R=
BUG=321517
TEST=http/tests/xmlhttprequest/origin-exact-matching

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163406 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL compiler: parent interfaces for [EventConstructor]

BUG=239771
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163407 bbb929c8-8fbe-4397-9dbb-9b2b20218538
IDL compiler: remove redundant includes from .cpp

The following 3 headers are included in .h, hence not needed in .cpp:
* bindings/v8/V8Binding.h
* bindings/v8/V8DOMWrapper.h
* V8{{parent_interface}}.h

These duplicates are clear in Python, since we have the two lists next to each other, not buried in the code.

Also checked that other headers are necessary, and remove the FIXMEs.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163408 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Delete empty directory

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