Remove StyleResolver dependency from RenderTheme

RenderTheme::adjustStyle currently takes a StyleResolver pointer and then proceeds to pass this along to all adjust*Style calls even though it isn't used by any of the adjustStyle methods in any theme.

BUG=247806
TEST=No new tests, no change in functionality
R=esprehn@chromium.org

Review URL: https://chromiumcodereview.appspot.com/16675002

git-svn-id: svn://svn.chromium.org/blink/trunk@152063 bbb929c8-8fbe-4397-9dbb-9b2b20218538
We need to change the caret color according to the lightness of the background color.

BUG=232188
TEST=Follow the bug description.

Review URL: https://chromiumcodereview.appspot.com/14098003

git-svn-id: svn://svn.chromium.org/blink/trunk@152064 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Renamed EXT_draw_buffers extension to WEBGL_draw_buffers

WEBGL_draw_buffers will be hidden behind the --enable-webgl-draft-extensions flag

BUG=247484

Review URL: https://chromiumcodereview.appspot.com/16634013

git-svn-id: svn://svn.chromium.org/blink/trunk@152065 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a release assert to DOMWrapperMap to track down duplicate wrapper creation

Adding multiple wrappers for the same key to DOMWrapperMap can result in two
different kinds of hard-to-track-down crashes (see attached bug). This assert
should help us catch those problems earlier.

R=abarth@chromium.org
BUG=243055

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152066 bbb929c8-8fbe-4397-9dbb-9b2b20218538
get python tests passing on win32.

There's more cleanup to be done, but this at least gets test-webkitpy
passing so we can reenable it on the bots.

R=eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152067 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 152058 "Prepopulate the memoryCache with data:uri images."

It broke following tests on all platforms:
  fast/backgrounds/solid-color-context-restore.html
  fast/forms/basic-buttons.html
  http/tests/inspector/network/image-as-text-loading-data-url.html
  virtual/softwarecompositing/tiling/huge-layer-img.html

> Prepopulate the memoryCache with data:uri images.
> 
> This patch prepopulates the memoryCache for data:uri
> images, fixing a long-standing bug where data uri
> subresources did not load for SVG images (network
> loads are still disabled).
> 
> The two large changes are the following new methods:
> 1) resourceFromDataURIRequest has been added which
> returns a resource from a data uri request. This
> function was placed on CachedResource because it
> needs to use the createResource helper function. I
> hope this function can be re-used in a followup
> patch to reduce memory in data uri handling.
> 
> 2) preCacheDataURIImage has been added which simply
> prefills the memory cache with a data uri image.
> Care is taken to evict any resources that have the
> incorrect type.
> 
> Note: the following Chromium-side change is required:
> https://codereview.chromium.org/16096016/
> 
> BUG=224317
> R=abarth@chromium.org
> 
> Review URL: https://codereview.chromium.org/16433002

TBR=pdr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152070 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Test expectation update

BUG=247887,247888
TBR=jochen@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152071 bbb929c8-8fbe-4397-9dbb-9b2b20218538
http/tests/navigation/back-send-referrer.html is flaky

BUG=247889

git-svn-id: svn://svn.chromium.org/blink/trunk@152072 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 148933 "UpdateWidget() can fire beforeload event synchron..."

> UpdateWidget() can fire beforeload event synchronously blowing away RenderArena and its associated RenderObjects. In that case, we bail-out and clear m_widgetUpdateSet set.
> 
> BUG=226696
> 
> Review URL: https://codereview.chromium.org/14329005

TBR=inferno@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152074 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove ENABLE_PARTITION_ALLOC define from the gypi.

This will enable experiments in the main waterfall without conflicting defines.

BUG=246860
TBR=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152076 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[Resource Timing] Expose redirect timing information

This change contains redirect timing information for W3C Resource Timing spec, and tests.

Contributed by pan.deng@intel.com

BUG=None

Review URL: https://chromiumcodereview.appspot.com/13912021

git-svn-id: svn://svn.chromium.org/blink/trunk@152077 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use setPseudo instead of shadowPseudoId.

This change makes code simpler. Overriding shadowPseudoId requires one
line for a header and 6 lines for a cpp file. On the other hand, setPseudo
requires just one line.

Also, setting attributes (including pseudo) in a constructor is a bad idea. We
should avoid it.

BUG=none
TEST=none; just a refactoring.

Review URL: https://chromiumcodereview.appspot.com/16361011

git-svn-id: svn://svn.chromium.org/blink/trunk@152078 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Introduce toHTMLImageElement(Node*), and use it.

BUG=none
TEST=none; no behavior changes.

Review URL: https://chromiumcodereview.appspot.com/16688003

git-svn-id: svn://svn.chromium.org/blink/trunk@152079 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove Node::toInputElement.

This function doesn't match our convention of toFooType functions. toFooType
functions should cause an assertion failure if the specified object is not a
FooType. However, Node::toInputElement returns 0 in this case.

The callsites of Node::toInputElement are updated for toHTMLInputELement().

BUG=none
TEST=none; This CL should not make any behavior changes.

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151912

Review URL: https://chromiumcodereview.appspot.com/16527003

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