DevTools: consume mouse move events while in the inspect element mode.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179395 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Timeline: make trace model rely on event order, not timestamp where possible

We may get several events with same timestamps if timer resolution is low,
so defer event nesting based on event order where possible and only use
timestamps in case nesting may not computed otherwise.

Drive-by: fix inspector/layers/tracing-layer-tree.html that was failing for several couple of reasons, including the above one.

BUG=361045

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179396 bbb929c8-8fbe-4397-9dbb-9b2b20218538
If the media controls are visible they should always grab clicks

Once we have decided to show the media controls it makes no sense to
allow the page to change their handling. This CL ensures that, if the
media controls are shown, then clicks on them actually get to them.

BUG=388738
BUG=269454

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179397 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Don't append async call stack to console stack when looking only for a top call frame.

In this common special case we do not need async call stack.

R=yurys

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179398 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify SelectorChecker's parentElement() function

Simplify SelectorChecker's parentElement() function by merging two if
conditions that end up returning the same result. This lets the compiler
generate slightly more efficient code.

R=esprehn@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179399 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: count the number of consoleProfile and consoleTimeline calls.

We would like to know stats about consoleProfile and consoleTimeline
usage in the field. If they are small we would like to deprecate and remove these commands.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179400 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use explicit case-insensitive attribute-value matching in UA-stylesheets

With the "i" (case-insensitive) matching modifier introduced in
https://codereview.chromium.org/330043003/, it becomes possible to
refine the hits on the CaseInsensitiveAttrSelectorMatch use-counter
by applying the modifier to all rules in the UA-stylesheets which
perform an attribute-value match on one of the attributes that - due
to legacy reasons - should be matched case-insensitively.

Most of the modified rules involve the 'type' attribute on <input>
elements, but there are a few others as well ('dir' and 'align').

The goal of this is to be able to get rid of the legacy-induced case-
insensitive cases and leave the "i" flag as a mechanism to opt-in to
case-insensitive matching. See https://crbug.com/327060 for further info.

BUG=327060, 366563

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

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