DevTools: Beautify timeline flamechart fonts.

NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172645 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix 359994, Crash Report - v8::HandleScope::HandleScope

BUG=359994
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172646 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Change HashCountedSet in ActiveAnimation to HashMap

This is a preparation to move AnimationPlayer to oilpan's heap. Since Oilpan does not support HashCountedSet, this CL replaces HashCountedSet<AnimationPlayer*> with HashMap<AnimationPlayer*, int>.

TEST=AnimationAnimationPlayerTest::AttachedAnimationPlayers
BUG=340522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172647 bbb929c8-8fbe-4397-9dbb-9b2b20218538
This patch works around some problems when CORS requests redirect.

- Instead of allowing the request to continue, DocumentThreadableLoader (DTL)
cancels the old request and starts a new one. However, the chromium embedding
layer gives us a new request without the original headers. In order to create a new
request that matches the old one, DTL now stores the request headers that are
allowed by the CORS redirect steps, and in case of a cross origin redirect, copies
them to the new request.

- Remove calls to clearHTTPAccept and clearHTTPContentType when CORS redirects.

- Eliminates these methods on ResourceRequest, since they are now unused.

BUG=162183

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172648 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Temporarily mark all text-based-repaint tests as text flaky

NOTRY=true
TBR=abarth@chromium.org
BUG=367201

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172649 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: flatten console panel messages structure

Console API has methods console.groupStart() and console.groupEnd()
which make it possible to wrap console messages. It is allowed to
have nested console.groupStart() calls, which implies tree-like
structures.

At present, group hierarchical structures were mirrored via DOM
nested elements, which made it complicated to implement a viewporting
in console.

This patch supports future attemp in viewport implementation. It removes
DOM nesting elements and makes all messages to be stored as a properly
decorated siblings next to each other.

R=sergeyv, pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172651 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add trace events for DevTools Timeline network events

BUG=361045

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172652 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove ScheduleResourceRequest event from Timeline

The event is never fired.

BUG=None

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172653 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove WebWidget::didExitCompositingMode.

After https://codereview.chromium.org/256573003/ this is no longer
called.

R=abarth
BUG=366130

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172654 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Replace some callers of staleInCompositingMode.

There's no change in behavior here other than adding asserts.
I tested this by running webkit_unit_tests and the layout tests.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172655 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add the backchannel for Blobs to be received into Blink from the database backend.

BUG=108012

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172656 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix FEOffset in the non-uniform scale case.

BUG=366665

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172657 bbb929c8-8fbe-4397-9dbb-9b2b20218538
ServiceWorker: Promise rejections should be DOMExceptions, not DOMErrors

BUG=365886

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172658 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Get the WebUserMediaClient from WebFrameClient instead of WebViewClient.

BUG=304341

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172659 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[SVG] Filter effects with empty paint rects are valid inputs.

Currently, FilterEffect::createImageBufferResult() refuses to allocate
image buffers for FEs with empty absolute repaint rects - which in turn
causes the filter chain to fail.

But such FEs can still produce results when used as inputs for certain
effects (feComposite for example). We should not break the filter chain
on empty-rect inputs, but let individual FEs sort it out.

BUG=366665
R=senorblanco@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172660 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Make screencast gestures follow touch emulation.

Unfortunately, we cannot inject touches and get gestures, so the only
solution is to issue gesture events directly.

What changed:
- left mouse button drag with shift issues pinch (instead of right button);
- mousewheel does not disturb current scroll and pinch;
- reversed pinch zoom direction;
- fixed scroll delta calculation, which was screwed up by |screenOffsetTop| updates.

BUG=324590

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172661 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a test case for fallback content in the object element.

Rendering of these test cases is very inconsistent among browsers so if
we ever decide to harmonize this is our baseline.

BUG=2210

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172662 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove the early returns in FrameView::updateCompositingLayersAfterStyleChange.

This function used to do a lot, so the early return was needed
as a performance optimization. Now this function just sets
some dirty bits and sometimes does a bit more work, so we
don't need the early returns.

Also, move enableCompositingModeIfNeeded into the 
CompositingUpdateAfterLayout branch of setNeedsCompositingUpdate.
Otherwise, updateCompositingLayersAfterStyleChange would end up
calling m_compositingReasonFinder.requiresCompositingForScrollableFrame,
which asserts that the RenderView doesn't need layout, which is
obviously not the case inside updateCompositingLayersAfterStyleChange.
Moving it in this branch is correct because enableCompositingModeIfNeeded
only does something if m_rootShouldAlwaysCompositeDirty is true.

The rebaselined test is a progression. I'm pretty sure it's
just a result of different timing in when we do the
compositing update. When there's a root transform layer, the
scrollbar layer should be a child of it instead of the overflow
controls host layer. This behavior was added in
https://src.chromium.org/viewvc/blink?view=rev&revision=167579.
The old behavior points to a bug in the code, i.e.
if we create the scrollbars before creating the root
transform layer then we don't reparent the scrollbars
to that layer.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172666 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify and share selection rect snapping logic

Simplify the logic for pixel snapping a selection rect and share the
implementation across the simple and complex text paths.

BUG=366705
R=dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@172669 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Include event type name in tracing output for EventDispatcher

R=ojan

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

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