IndexedDB: Remove IDBDatabaseBackendInterface/Proxy

Continued Source/web/*IDB* purging. This lets Source/modules
directly use the blink::WebIDBDatabase provided by the embedder.

The one subtle bit is a contract between Chromium and Blink
passing the WebIDBDatabase instance. In an upgrade scenario, 
onUpgradeNeeded(db) and onSuccess(db) are both called with
the same db object; obviously, the latter call is not an
ownership transfer. This was previously handled by re-using
the same refcounted proxy; now a flag is used and the pointer
is ignored. Once this lands we can update Chromium to pass null
in this case which will simplify both sides.

BUG=234277

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162569 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: refactor outline dialogs to run callback on item selection

This patch refactors outline dialogs to run specified callback on
item selection. This is a prework for the "jump to previous editing
location" feature.

BUG=281507

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

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

DocumentThreadableLoader::create may return 0 when the document loader has been already changed.
In the original code memory leak may happen when FileReader is runing in the worker thread and the user clicks the reload button because unsetPendingActivity will not be called.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162571 bbb929c8-8fbe-4397-9dbb-9b2b20218538
WebLayerTreeView and WebWidget API cleanup

This CL consists of 3 orthogonal changes. None of the changes affect code
behavior.

[3/3] Use WebLayerTreeView::setNeedsAnimate in place of WebWidgetClient::scheduleAnimation

In single thread mode WebWidgetClient::scheduleAnimation will be routed through
SingleThreadProxy::SetNeedsAnimate. Now WebLayerTreeView::setNeedsAnimate
should work in both modes.

[2/3] Remove WebLayerTreeView::setNeedsRedraw

The implementation is fully equivalent to setNeedsAnimate.

[1/3] Remove WebWidget/WebViewImpl::setNeedsRedraw

BUG=112837

R=jamesr
DEPENDS=https://codereview.chromium.org/80173002/

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162572 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Put RuleSets on their StyleSheetContents.

This makes adding/removing stylesheets much cheaper as we don't
have to create the RuleSets for the existing stylesheets. Also,
in the future when we do more caching of StyleSheetContents,
it means we'll do a lot less work on pages with repeated
stylesheets (e.g. as many web components pages have).

ScopedStyleResolver now holds on to a list of RuleSets, one per
StyleSheetContents. I'm not exactly sure what the
hasOnlyEmptyRuleSets call was supposed to do, but all the tests
pass without it.

Store the styleSheetIndex on MatchedRule so that we can properly
sort rules by their position in ElementRuleCollector::compareRules.

We need to treat stylesheets that have media queries specially
because the RuleSet is different depending on how media queries
evaluate. As such, we can't share StyleSheetContents with media
queries and we need to clear the RuleSet on the StyleSheetContents
whenever media queries might have changed.

Finally, StyleSheetContents::clearRuleSet needs to clear its 
RuleSet, and its parent stylesheet's ruleset since its rules
are merged into its parent's RuleSet. And, it needs to clear the
StyleResolver for all its client CSSStyleSheets since we need to
recreate all the data structures in StyleResolver (i.e. see
ScopedStyleResolver::addRulesFromSheet and what it adds to
StyleResolver).

fast/css/media-query-dynamic.html is a reduction out of acid3.html
that shows the case that needs the CSSComputedStyleDeclaration.cpp
change. We should create the styleResolver if we don't have one so
we can figure out if it has any viewport dependent media queries.
The old code was just buggy and wrong.

fast/dom/shadow/part-override-style-in-shadow-tree-expected.txt is 
a genuine regression, but :part is no longer a feature we plan to
ship. It will be removed shortly, so I'm just rebaselineing for now.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162573 bbb929c8-8fbe-4397-9dbb-9b2b20218538
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