Save a memory copy on Android for decoding images to discardable memory

On Android we can save copying the bitmap if the decoder writes directly
to the discardable memory.

All webkit_unit_tests passed with this change.

BUG=352570

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169457 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix find next shortcut on mac and remove it on linux.

This is a fix for a regression introduced in r161635

BUG=353221
R=pfeldman, lushnikov

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169458 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove NoInterfaceObject from BatteryManager.

This flag has been removed from newer versions of the specification.

BUG=353337

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169459 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Fix worker thread termination finalization order issues.

We need to carry out the nullptr assignment to m_workerGlobalScope
before notifying the proxy that the worker thread is going away. 
Otherwise, the main thread could destroy the WorkerThread object 
which owns the m_workerGlobalScope persistent before the assignment 
and that would lead to a use-after-free.

It turns out that there are objects that keep the execution context
alive in order to be able to determine if they are being destructed
on the right thread. Therefore, clearing out the thread member
in WorkerGlobalScope cannot be done before the WorkerGlobalScope
is actually dead. Therefore, the larger change that Sigbjorn did
will not work. (One example of this kind of dependency is
SQLCallbackWrapper.)

We need to just keep the thread member intact and let objects
die normally. The call to detach needs to happen before we
actually kill the worker thread because finalizers need to
be able to access thread local data.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169460 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix handling of bidirectional override

Fix handling of BDO (bidirectional override) elements by explicitly
checking for bidi override in RenderText and using the specified
direction instead of resolving based on content.

R=leviw@chromium.org
BUG=352160
TEST=fast/text/international/bdo-bidi-width.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169461 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Reapply: Remove all the RefPtrs and most of the raw pointers to style
sheets.

Comment on the cases where the raw pointers cannot be removed at this point.

Leave the raw pointers in inspector/ alove. They are safe as they are
now because the inspector leaks all the CSSStyleSheets it is inspecting
via Persistent handles at this point (and used to leak them all via
RefPtrs.)

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169462 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix crashes in MemoryCache related to successful revalidation

If the same url is revalidated multiple times, the first revalidation may end
up being incorrectly left in an LRU list after it is deleted. This is because
we have an early exit in removeFromLRUList() when the resource's accessCount()
is zero, even though we unconditionally put the resource in an LRU list when
it is added to the cache. We increment accessCount for the new resources case
in add(), but not the successful revalidation case in replace().

(All of these bugs are most likely the same root cause, but it's not absolutely certain)
BUG=353035,352538,352444
TEST=MemoryCacheTest.MultipleReplace

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169463 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove uses of SkBitmap::Config (deprecated) from core/ and platform/.

These should be replaced by SkColorType and SkImageInfo.
In many cases, shortcut methods like SkBitmap::allocN32Pixels can be used.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169464 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move deferred loading logic from WebMediaPlayerClientImpl to HTMLMediaElement.

BUG=350571
TEST=All layout tests still pass.

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

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