DevTools: fix focus behavior

This patch fixes two focus glitches:
- when a tab is closed via mouse, a newly opened editor (if any) is focused
- when a ctrl-r is hit inside and an editor opened to edit network
resource, the focus is brough back in any re-opened editor.

BUG=360584

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171154 bbb929c8-8fbe-4397-9dbb-9b2b20218538
WebAudio: Remove legacy support for numerical values for BiquadFilterNode types.

BUG=346522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171155 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Grid Layout] Introduce an explicit type for resolved grid positions

We were using simple size_t integers to represent resolved grid
positions in our internal data structures. This change allows us to
clarify the code, avoid potential off by one mistakes, and move the
resolving code to a central place.

Based in a patch by Xan Lopez <xlopez@igalia.com>
https://codereview.chromium.org/113943003/.

BUG=258258

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171156 bbb929c8-8fbe-4397-9dbb-9b2b20218538
InspectorDOMAgent: Add isChild() check before a cast

This checks HTMLImport::isChild() before cast it through
toHTMLImportChild()

BUG=361017
TEST=none
R=pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171157 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Convert testRunner.display to displayAsync(Then)

This removes all callers of the synchronous display() call so that it
can be removed on the Chromium side.

See also: https://codereview.chromium.org/224743002

BUG=345027

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171158 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove platform overrides virtual_test_suites

Change the virtual linux-subpixel from being only being defined on
linux to being a platform-independent suite skipped on all other
platforms as our tooling isn't set up to handle platform specific
virtual test suites.

This removes the only platform override of virtual_test_suites thus
having all virtual test suites defined in base.py

R=dpranke@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171159 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Handle didMoveToNewDocument() for <script>

This change handles inter-document move for <script>
so that it cancel script execution when it moves between documents.
As the execution relies on ScriptRunner that is owned by Document,
this cancellation is reasoable if not ideal.

TEST=append-child-adopt-node-crash.html
BUG=361011
R=dglazkov@chromium.org, eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171160 bbb929c8-8fbe-4397-9dbb-9b2b20218538
The width of text-combine was doubly counted.

When breaking a line, BreakingContext::handleText() calls textWidth()
with length is zero for text-combine. After that, it calls textWidth() with
length is the length of combined text.

textWidth() just calls RenderText::width(), and
RenderCombineText::width() returns its font size without considering the
length in the argument. Therefore, nextSegmentBreak() doubly counts the
width of combined text.

This causes line breaking in a shrink-to-fit block.

RenderCombineText::width() should returns 0 if the length in the
argument is 0.

BUG=321552, 359114

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171161 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Outline is not invalidated correctly

r169659 moved the outline to the visual overflow but forgot
that any outline change (especially growth) would impact the
visual overflow but would NOT trigger a layout.

The fix is to force a full layout when the outline changes.
It is not strictly necessary as we could get away with
just recomputing the visual overflow but we don't
have such a specialized layout yet.

BUG=3555983

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171162 bbb929c8-8fbe-4397-9dbb-9b2b20218538
ScrollingCoordinator::reset needs to unhook content layers

This function is only used in test code, and blindly deletes content
layers without informing their associated GraphicsLayers that they've
disappeared. This can lead to test crashes.

BUG=357292

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171163 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a sizes attribute runtime flag

BUG=357586

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171164 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add CharacterData.deleteData()/replaceData() overflow handling.

If the offset and count exceed the underlying length, the spec tells us

  http://dom.spec.whatwg.org/#concept-cd-replace (step 3)

to use a count that is equal to length minus the offset. Perform that
check in an overflow-sensitive manner.

(Change based on https://codereview.chromium.org/188693007/ )

R=
BUG=349898

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171165 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use "universal" accelerated scrolling exclusively on bleeding edge.

Currently, the universal path depends on the legacy path. The reason was
that the legacy path created fewer layers (by forcing stacking context-
like behavior). In the world of squashing, this is dumb. The legacy path
requires some very expensive opt-in checks that we'd like to avoid. This
patch enables the universal path, and only the universal path, when
we're in bleeding-edge mode, skipping the legacy work.

(Aside: the stacking container concept is not long for this world. \o/).

BUG=None

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171166 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Expose WebView::setOpenedByDOM.

Sets the openedByDOM bit on the Page. This is used to determine whether
window.close() may be called. Expose this so the state may be managed by the
WebContents and plumbed down as Pages are created.

A follow-up change will remove the two existing calls to Page::setOpenedByDOM
after the value becomes managed by Chromium.

BUG=357579

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171167 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Replace string comparing to enum comparing.

since process() is executed frequently, enum comparing to find panningModel is
better than string comparing.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171168 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix for Assert and more with bad CSS input.

The CSS input had a strange belief that users are nice and would not
feed it strange strings. This caused asserts and bug 360403.

BUG=360403

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

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