Store opener information in embedder layer.

This is analogous to the transformation we did for frame tree. It 
also resolves several crashes when accessing the opener from the
the embedder if the opener frame had already been detached but 
not yet destroyed.

BUG=335947

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167878 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Introduce V8XXX::findInstanceInPrototypeChain

This CL introduces V8XXX::findInstanceInPrototypeChain(), which is similar to V8XXX::hasInstance().
The difference is whether the method looks up a prototype chain to find the instance.
When using V8XXX::findInstanceInPrototypeChain() we don't worry about world type,
so it's less error-prone than using xxx->FindInstaceInPrototypeChain(domTemplate(..., worldType())).

The real intention of this CL is removing call sites of domTemplate(..., worldType()).

BUG=341032

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167879 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Make WebInspector.ConsoleMessage a pure model entity with no UI features

WebInspector.ConsoleMessage used to combine both model and UI aspects, thereby
violating basic architectural principles.

ConsoleMessage.setMessageElement() has been removed because of this, and
we also don't see great value in the profile name linkification.

R=eustas, pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167880 bbb929c8-8fbe-4397-9dbb-9b2b20218538
shouldClipCompositedBounds should early exit

There's no reason to evaluate the second condition if we already know what the
result of the function is.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167881 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[New multicol] Make -webkit-column-break-inside:avoid work.

adjustForUnsplittableChild() simply forgot to check whether we
were inside flow thread based multicol, which kept it from even
considering what -webkit-column-break-inside was set to in such cases.

BUG=346661

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167882 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make getProperty more strict when handling the priority parameter

Make getProperty more strict when handling the priority parameter. Before this patch
only a substring search on "important" was done. However CSSOM is quite clear to be more strict :

http://dev.w3.org/csswg/cssom/#dom-cssstyledeclaration-setproperty
5. If priority is not the empty string and is not an ASCII case-insensitive match for the string "important", terminate this algorithm.

This patch implements that more strict behavior and adds a test.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167883 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Associate PingLoader loaders with routes in the browser."

Associating them with routes introduces the possibility of them getting lost in
the Chromium ResourceScheduler. (If the request was deferred in
pending_requests and never started before the route was removed.) Just revert
it for now since the histograms this was needed for will be done differently.

> Ping requests currently do not pass through willSendRequest which means they
> are not correlated with a RenderFrameHost in the browser. Change this so they
> can be.
>
> BUG=302816
>
> Review URL: https://codereview.chromium.org/171083003

BUG=302816

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167884 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web MIDI: add one more owner

BUG=n/a
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167886 bbb929c8-8fbe-4397-9dbb-9b2b20218538
HRTFDatabaseLoader is not an absolute condition to run audioContext

WebAudio feature uses HRTFDatabase(Head-releated transfer function) for pannerNode.
However, In constructor of AudioContext::AudioContext, HRTFDatabaseLoader has been created always.
It costs approximatively 30MB depends on samplerate even if there is no node to use HRTFDatabase.
As according to W3C spec and implementation of current source code, It is used only for PannerNode.
HRTFDatabaseLoader should be relocated to pannerNode.
Move to check HRTFDatabase on pannerNode::process

BUG=342288

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167887 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[blink] Show spelling suggestions when pressing context menu key.

The EventHandler::sendContextMenuEventForKey() handler does not invoke
context-menu hooks. This results in absence of spellcheck functionality in
the context menu brought up with a context-menu keyboard key. (Spellcheck
functionality is present only in the context menu brought up with a right
mouse button click.) The fix is to do the same thing as what the 
EventHandler::sendContextMenuEventForGesture() handler does: replacing
dispatchMouseEvent() call with handleMousePressEvent() and 
sendContextMenuEvent() calls. Note that sendContextMenuEvent() will invoke
dispatchMouseEvent().

Old flow:

sendContextMenuEventForKey
  -> dispatchMouseEvent

New flow:

sendContextMenuEventForKey
  -> handleMousePressEvent, sendContextMenuEvent
    -> dispatchMouseEvent

BUG=282598

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167888 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Suppress failures for fast/text/chromium-linux-fontconfig-renderstyle.html

This test will need to be rebaselined after
https://codereview.chromium.org/163433013/ lands.

BUG=342077

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

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