Revert r149014 to see if it fixes several crashes occurring in ResourceLoader
and DocumentLoader.

TBR=abarth

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149124 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Landing https://chromiumcodereview.appspot.com/13452009 on behalf of jun.a.jiang@intel.com:

Enhance the restrictions on going through the faster hardware path for uploading Canvas2D/Video to WebGL.
1) Add a new parameter dest_type for copyTextureCHROMIUM() to define the destination texture if needed.
2) Add a canUseCopyTextureCHROMIUM(format, type, level) function to check if copyTextureCHROMIUM() could be used
for the combination of the specified format, type and level. Otherwise, it will go through the SW path.

This patch depends on the patch(https://codereview.chromium.org/13613006/) to land first.

BUG=235035
R=zmo@chromium.org,kbr@chromium.org
TBR=kbr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149125 bbb929c8-8fbe-4397-9dbb-9b2b20218538
No longer auto cc me on bindings changes

NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149126 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge GraphicsContextSkia into GraphicsContext.

This moves all of the methods in GraphicsContextSkia and puts
them in GraphicsContext. Where the method was a "setPlatform..."
or other platform portion of a platform-agnostic method, the
functionality has been combined to have a single method.

Some includes have also been added to WTF headers so that they
compile alone. For example, a file can now include Assertions.h
and not have to include anything else.

All headers in GraphicsContext have been modified to have
complete paths.

Methods defined outside of any class in GraphicsContextSkia
have been moved to a new class GraphicsContextUtils.

R=eseidel,jamesr,thakis
BUG=234774

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149127 bbb929c8-8fbe-4397-9dbb-9b2b20218538
remove WebSecurityOrigin from Blink IDB calls

Part 3 of 3.

BUG=233361

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149128 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Removing all code that uses GraphicsContext::clipBounds.

In turn, that means removing almost all of ShadowBlur's functionality.
The only remaining user is in SVG's FEDropShadow filter software path.

BUG=235167

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149129 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove left-over PageCache stuff

PageCache was removed in r148973. This patch removes the rest
of the Settings code as well as various comments/logging code.

Finally, it gets rid of LayoutTests that are no longer exercising
anything interesting. In a few cases, the test still seems to be
testing interesting behavior; these have been updated to remove
their reference to the UsesPageCache pref.

BUG=229605

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149130 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove all references to TEXTURE_MAPPER

Chromium never defines TEXTURE_MAPPER so references to it can be removed.

R=jamesr@chromium.org,enne@chromium.org
BUG=235165

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149131 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Landing https://chromiumcodereview.appspot.com/13452009 on behalf of jun.a.jiang@intel.com:"

This reverts commit 149125. It broke virtual/gpu/fast/canvas/webgl/texture-active-bind.html.

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=virtual%2Fgpu%2Ffast%2Fcanvas%2Fwebgl%2Ftexture-active-bind.html

TBR=kbr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149132 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Properly handle 'span' position during layout

This change plumbs the final bits so that we now recognize 'span'
positions and resolve them accordingly.

Left out of this change is the interaction with the auto-placement
algorithm which is still unresolved in the specification (see
issue 234768).

BUG=229713

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149133 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add an indirection to GridTrackSize's Length

This is a refactoring step towards supporting <flex>. The goal of this
class is to encapsulate the knowledge of <flex> to the Grid layout
code.

This change only adds the class and updates the calling code to deal
with the indirection.

BUG=235258

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149134 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Limit the number of WebGL contexts that are active at any given time

Context count is limited per render process, and is limited to either an
arbitrary count (currently 16) or a cumulative pixel count
(currently 16 * 1024 * 1024). If either limit is exceeded the oldest context
will be forcibly lost to allow the new one to be created. If an active context
is removed a previously lost context will attempt to restore.

BUG=226868

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149135 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove the flag WTF_USE_OPENTYPE_SANITIZER

It was always enabled on Chromium, which means that we fallback to
OTS to parse WOFF fonts. That's why it's fine to remove
WOFFFileFormat.{h|cpp} as it is duplicated with OTS.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149136 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Don't crash in V8MutationCallback if the callback has been GCed

Since V8MutationCallback::m_callback is a weak handle, the code
needs to ensure it's not gone before calling it.

R=esprehn
BUG=234368

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

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