Fix crash when accessing Event::path().

(A more elaborate account of the details is found in the bug report.)

BUG=400476
R=haraken@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181200 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up code duplication of isAtShadowBoundary()

Moved isAtShadowBoundary() to Element.h in order to remove duplication.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181201 bbb929c8-8fbe-4397-9dbb-9b2b20218538
use c++03 style enum scope

Followup to https://codereview.chromium.org/473833002

We haven't officially switched over to using c++11 everywhere
yet, so this patch replaces c++11 style enum scope with c++03 style scope.

BUG=402749

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181202 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Adds accessibility role for figure tag and handles its children as a group.
figure tag can have several children.
This patch makes its children a group for accessibility role.

BUG=282040

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181203 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Move MediaStreamSource, MediaStreamComponent and MediaStreamDescriptor to oilpan's heap

- MediaStreamSource, MediaStreamComponent and MediaStreamDescriptor must be moved to oilpan's heap in one go because their lifetime are tightly coupled.

- Removed m_descriptor->setClient(0) from MediaStream's destructor. This is OK because MediaStreamDescriptor has a strong Member back to the Client (i.e., MediaStream).

- Removed m_component->source()->removeObserver(this) from MediaStreamTrack's destructor. This is OK because this CL made the observers weak (i.e., MediaStreamSource::m_observers is a hash set of weak members to MediaStreamTrack objects).

- Removed WebMediaStreamTrack::ExtraData::m_owner because it's unused.


BUG=340522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181204 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Fix crash when accessing Event::path(). (patchset #4 id:60001 of https://codereview.chromium.org/516843004/)

Reason for revert:
The test crash-on-querying-event-path.html is unacceptably flaky.
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=@ToT%20Blink&tests=http%2Ftests%2Fdom%2Fcrash-on-querying-event-path.html&testType=layout-tests


Original issue's description:
> Fix crash when accessing Event::path().
> 
> (A more elaborate account of the details is found in the bug report.)
> 
> BUG=400476
> R=haraken@chromium.org
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181200

TBR=haraken@chromium.org,vogelheim@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=400476

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181205 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove geolocationDestroyed() client notification.

This WebGeolocationClient notification is no longer issued by Blink
to the embedder (Blink r180944), nor implemented (Chromium r292890.)

R=
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181206 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Oilpan: Move MediaStreamSource, MediaStreamComponent and MediaStreamDescriptor to oilpan's heap (patchset #5 id:80001 of https://codereview.chromium.org/509933002/)

Reason for revert:
Broke multiple tests in content_unittests.
e.g. https://build.chromium.org/p/chromium.webkit/builders/Linux%20Tests/builds/39151


Original issue's description:
> Oilpan: Move MediaStreamSource, MediaStreamComponent and MediaStreamDescriptor to oilpan's heap
> 
> - MediaStreamSource, MediaStreamComponent and MediaStreamDescriptor must be moved to oilpan's heap in one go because their lifetime are tightly coupled.
> 
> - Removed m_descriptor->setClient(0) from MediaStream's destructor. This is OK because MediaStreamDescriptor has a strong Member back to the Client (i.e., MediaStream).
> 
> - Removed m_component->source()->removeObserver(this) from MediaStreamTrack's destructor. This is OK because this CL made the observers weak (i.e., MediaStreamSource::m_observers is a hash set of weak members to MediaStreamTrack objects).
> 
> - Removed WebMediaStreamTrack::ExtraData::m_owner because it's unused.
> 
> 
> BUG=340522
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181204

TBR=oilpan-reviews@chromium.org,zerny@chromium.org,haraken@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=340522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181207 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark some tests flaky.

BUG=409712,409713,409715
TBR=hclam@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181208 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Ship Oilpan for WaitUntilObserver and RespondWithObserver

Now that I fixed the memory leak in WaitUntilObserver and RespondWithObserver
(https://codereview.chromium.org/526973002/), it's safe to move them to oilpan.

BUG=340522
TBR=tkent

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181209 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Removing "using" declarations that import names in the C++ Standard library.(Source/platform/[m* - t*])

This is as per the the coding guidelines for blink.
Do not use "using" declarations of any kind to import names
in the standard template library. Directly qualify the names
at the point they're used instead.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181210 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Move Panner and HRTFDatabaseLoader to oilpan's heap

This is one of the leftovers when we shipped Oilpan for webaudio/.

The only substantial change of this CL is to change HRTFDatabaseLoader::LoaderMap to a static persistent heap hash map of weak members. By doing this, we can remove map.remove() from HRTFDatabaseLoader's destructor.

BUG=340522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181211 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark more timeline tests and an encrypted-media test as flaky.

BUG=407915,407993
TBR=hclam@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181212 bbb929c8-8fbe-4397-9dbb-9b2b20218538
virtual/implsidepainting/inspector/timeline/timeline-frames.html is flaky on all bots.

BUG=407915
TBR=hclam@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181213 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add more flaky timeline tests.

BUG=407915
TBR=hclam@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181214 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Regression: RenderListBox treat percent width like replaced content

BUG=408956

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181215 bbb929c8-8fbe-4397-9dbb-9b2b20218538
bindings: Adds virtual ScriptWrappable::wrap method.

Introduces a new virtual method ScriptWrappable::wrap and
uses it instead of blink::wrap(T*, ...).

Major design changes in this CL are:

* DEFINE_WRAPPERTYPEINFO defines virtual T::wrapperTypeInfo()
method in each script wrappable DOM classes.  With this macro,
ScriptWrappable::wrapperTypeInfo() returns the actual
WrapperTypeInfo of the instance.
Each script wrappable DOM classes must use this macro.

* New ScriptWrappable::wrap method plays the role of both of
old blink::wrap(T, ...) and V8T::createWrapper functions, and
the method is customizable in derived classes.

Follow-up CLs will remove the code which this CL make unnecessary
step by step.

BUG=235436

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181216 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[XHR] readyState must change to LOADING before "progress" event is dispatched.

As specified in http://xhr.spec.whatwg.org/#the-send()-method , changing state
must precede dispatching a "progress" progress event.

BUG=409544
R=tyoshino

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181217 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge willEnter/willExitFullScreen into didEnter/didExitFullScreen

The will/did callback pairs came into being in 2011:
https://bugs.webkit.org/show_bug.cgi?id=70477
https://code.google.com/p/chromium/issues/detail?id=100264

The original problem was that the webkitfullscreenchange was
dispatched too early, but this is not affected since the did*
callbacks are the ones left in use.

The risk is that something done in the will* callbacks is too late if
done moved to the did* callbacks. That amounts to:

 - Saving placeholder style and unwrapping/wrapping the renderer in
   Fullscreen::willEnterFullScreenForElement().

 - The overlayFullscreenVideoEnabled() bits in
   HTMLMediaElement::willStopBeingFullscreenElement() and
   FullscreenController::willExitFullScreen().

Since the only difference between will* and did* is that the new size
is known and events aren't fired synchronously, this seems likely to
be safe.

BUG=407002

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

git-svn-id: svn://svn.chromium.org/blink/trunk@181218 bbb929c8-8fbe-4397-9dbb-9b2b20218538
http/tests/serviceworker/request.html is flaky

BUG=409755
TBR=hclam@chromium.org

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

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