DevTools: tab selection after tabclose should not be a user gesture

This patch changes call to 'TabbedPane.selectTab' method to recieve
false as 'userGesture' argument if it's done as a part
of 'TabbedPane.closeTabs' method. This doesn't seem to change any
behavior as the 'TabbedEditorContainer._updateHistory()' will
be called anyway on the previous step of closing tabs, and
subsequent call to this method from 'selectTab' will result
in noop.

BUG=281507

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162574 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove confusing comment

Obviously the file mentioned in the comment is gone.

NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162575 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Hide and destroy inspector overlay page when profiling

InspectorOverlay page may affect performance of profiled application (especially on android, see the bug). The solution is to delete the page before starting profiling and restore it when profiling is done.

BUG=321194

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

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

TBR=
BUG=322887

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162577 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused code from SerializedScriptValue

Hopefully the first in a series of SSV cleanups. This is truly dead, uncalled
code as determined by an internal tool (scythe)

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162578 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: do not force excessive layout on every change in editor

This patch makes TabbedPane.setTabIcon to result in noop if
the icon is already set.

BUG=321735

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162579 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[websql] don't directly expose the thread id on the database thread

BUG=301514
R=michaeln@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162580 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Timeline: fix aggregated time stats in coalesced records

BUG=322155

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162581 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Svg filter feTurbulence with some specific parameters does not display.

Ignore the location part of absolutePaintRegion as the ImageBuffer is (0, 0) based.
I found this to only be a problem in the accelerated path.

BUG=162545

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162582 bbb929c8-8fbe-4397-9dbb-9b2b20218538
js-test.js: Make shouldBeFoo(expr, quiet) actually use quiet flag

A handful of tests pass in a |quiet| flag that's not implemented.
Fix it by actually implementing it and updating tests/results.

Also, make use of _-prefixed arguments and variables consistent
in functions that call eval() (to protect them) and don't prefix
them in functions that do not call eval().

R=ojan@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162583 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused WebFontCache APIs.

Also adjust FontCache accordingly.

BUG=315783
R=eae

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162585 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move BufferedLineReader into html/track/vtt.

BUG=322784

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162586 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make GraphicsLayer::contentsLayer() protected.

This method is exposed for tests, and very error prone because its name is too
similar to GraphicsLayer::contentLayer().
So this CL makes it protected.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162587 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unify GraphicsLayer::setContentsToMedia and setContentsToCanvas.

Merge setContentsToMedia and setContentsToCanvas into setContentsToPlatformLayer.

This CL is based on timothy_horton@apple.com's work: webkit.org/b/109658.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162588 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[websql] Remove DatabaseThread::scheduleImmediateTask

It's a horrible API. We shouldn't use it.

BUG=301514
R=michaeln@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162589 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[REGRESSION] Button cannot be clicked with text-indent : -99999999px after r143483.

Merged from http://trac.webkit.org/changeset/155546. 
This caused a bad repaint regression, when authors combine negative text-indent with overflow:hidden 
(which is what we recommend they do): bug 121137.
Revert the change, and add a new test to make sure it doesn't regress.

BUG=321892
TEST=
fast/repaint/negative-text-indent-with-overflow-hidden.html
fast/events/click-with-large-negative-text-indent.html
fast/repaint/paint-caret-in-div-with-negative-indent.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162590 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Regions] Use hasOverflowClip() in RenderRegion

Patch already landed in WebKit. See http://trac.webkit.org/changeset/159682

Implement the suggested FIXME in RenderRegion using hasOverflowClip().

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162591 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use font properties of @font-face for local font selection

Since a @font-face defines a single font face, not a family, font
face selection for local() source of @font-face rules should be done
using the @font-face descriptors rather than the element style.

For example, if @font-face defines a normal face, always the normal
face should be used even if multiple faces (normal, bold, italic, etc.)
are installed on the system. If the element has "font-weight:bold;"
style, synthetic bold of the normal face should be used.
This behavior matches FireFox.

This patch realizes that behavior by updating FontDescription with
@font-face's descriptor values in CSSSegmentedFontFace::getFontData.
Also, makes FontCache::createFontPlatformData to use synthetic
bold/italic when the FontDescription specifies that.

BUG=120453
TEST=fast/css/font-face-synthetic-bold-italic-for-locally-installed.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162592 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add number() static methods to AtomicString class

Add number() static methods to AtomicString class as a lot of callers need it and
previously had to use String::number() then convert the String to an AtomicString.
Calling AtomicString::number() directly when the caller needs an AtomicString is
~2% faster.

Also refactored HTML code to use the Element helper methods for Number attributes.

R=eseidel

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162593 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Check the result of DocumentThreadableLoader::create in WorkerThreadableLoader::MainThreadBridge::mainThreadCreateLoader."

This reverts commit 6d7c391ae3e2c185ca2fa17a282e442225d9d551.
Original change: https://codereview.chromium.org/78393002

The added test has been crashing/timing out on Mac.

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=worker-read-blob-async-crash.html

TBR=horo@chromium.org

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

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