webkit: networking optimizations

networking features:
- memory cache
- request queue priority
- event collection mechanism

Change-Id: I19b3dbe97ceddf3651f3549dfa937577149e86d7
Implement requestAnimationFrame

Cherry-pick from webkit-org branch on Code Aurora Forum:

requestAnimationFrame doesn't throttle on Mac
https://www.codeaurora.org/gitweb/quic/la/?p=platform/external/webkit.git;a=commit;h=d9dca741b4762c433ae18f7a1bc59a3a81861fc8

Timestamp parameter to requestAnimationFrame is busted in USE(REQUEST_ANIMATION_FRAME_TIMER) path
https://www.codeaurora.org/gitweb/quic/la/?p=platform/external/webkit.git;a=commit;h=f0909a46fa167c84062c63caffef340a6054bc1e

Rename webkitCancelRequestAnimationFrame to webkitCancelAnimationFrame to match spec change
https://www.codeaurora.org/gitweb/quic/la/?p=platform/external/webkit.git;a=commit;h=cd5d11d662d638b3e4dfda33f23cda907f007f12

Remove partially implemented per-Element visibility checks from requestAnimationFrame logic
https://www.codeaurora.org/gitweb/quic/la/?p=platform/external/webkit.git;a=commit;h=9fb90af3cebd0e595990cded0941d230cf77dcc1

Change-Id: Ib7e5a1c8138e2ca82c69fe904c1338a7b1fd48ef

Conflicts:

	Android.mk
DOM traversal optimizations DOM Core optimizations Prefetch optimization for DOM Tree Traversal

Change-Id: Ifc330c13f58c254d717d555375a584c9b7ca6479
check element object for null

Change-Id: Id85a8e6d4a58de7713c6d99d5732fadabb4391c7
[WebKit] Browsermark DomAdvSearch and DomSearch optimizations

        This patch is a combination of the following optimizations.

        Optimize appendCharactersReplacingEntities

        [Performance] Optimize innerHTML and outerHTML
        https://bugs.webkit.org/show_bug.cgi?id=81214

        Optimize Dromaeo/dom-query.html by caching NodeRareData on Document
        https://bugs.webkit.org/show_bug.cgi?id=90059

        Optimize Dromaeo/dom-attr.html by speeding up Element::getAttribute()
        https://bugs.webkit.org/show_bug.cgi?id=90174

        Change argument types of Element::getAttribute*() from String to AtomicString
        https://bugs.webkit.org/show_bug.cgi?id=90246

Change-Id: Icfb91db2dd02fad36e6ec5edf9c16138da8e6316
Performance enhancement.  Don't process non-visible lines for layout.

Change-Id: Ie2b594afb4f5244e18719e4feea51966ad4745cd
DO NOT MERGE Fix memory leak

 Cherry pick

 Bug: 6952980
 GraphicsContext::createOffscreenContext creates an instance of both
 PlatformGraphicsSkia and GraphicsContext for ImageBuffer. However,
 ImageBuffer will only call delete on the GraphicsContext. In normal
 GC usage, the PlatformGraphicsContext's lifecycle is longer than the
 GCs, and is cleaned up by itself. This will result in leaking the
 PlatformGraphicsSkia context, though. We need to make sure to call
 delete on the PlatformGraphicsSkia context if we were initialized
 with the deleteUs() flag, which is used to indicate just this scenario.

Change-Id: If908dcb44e99568b92ee63d6337ce9f84adc9adf

Conflicts:

	Source/WebCore/platform/graphics/android/context/GraphicsContextAndroid.cpp
Revert "Implement requestAnimationFrame"

This reverts commit 1c203502c6d5519f9fad7178c97e4525a5f4e583.

Conflicts:

	Source/WebCore/ChangeLog

Change-Id: Iead328a4322a6c3df8d5924929c146b5574b00b6
Enabling CPU upload

Change-Id: Idef7f6b9fe9af8d7069cdf736318f5d5311c0139
(cherry picked from commit 102f5aefe8fa22a5d86daa7996fb54bffaa8b503)
Revert "Revert "Implement requestAnimationFrame""

This reverts commit c4b413c6878a8b6173e742e3dbb265c6303bcb43.
Revert "Performance enhancement.  Don't process non-visible lines for layout."

This reverts commit 77610935eca248ab9ef9f1f3ba2a549b77c45c4a.
DO NOT MERGE Null check

 Cherry pick

 Bug: 6975836
 Fixes a crash in find on page

Change-Id: I20e1597f2f3a381ee693c1bcef944243ca654110
Make sure we gather the textures before any prepare work

The available tile textures pool is not updated while we try to prepare image.
This can lead to getting obsolete tile textures.

bug:6613009

Change-Id: I0170f0cfba197c7a7ed48866028b30075417af30

Conflicts:

	Source/WebCore/platform/graphics/android/GLWebViewState.cpp
joooooooewwwceeeee!!!

Change-Id: Ife2637b0aa2d568664f3f2d3f7d6950777bdf434
fix a couple compiler warnings

Change-Id: I044c22bc0fa28d487ecdecff84681414f17ca710