remove static persistent in V8NPObject.cpp

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157454 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add use counter for insertAdjacentText and insertAdjacentElement

These two are non standard IE extensions.

BUG=286321

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157455 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [CodeMirror] roll CodeMirror to @e0b0e32ed

This patch rolls CodeMirror to @e0b0e32ed. This time we do not patch
CodeMirror to bring support for the long lines: instead, we rely on its
core functionality as it was recently improved. Experiments proved it
to be decent.

TBR=vsevik, pfeldman
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157456 bbb929c8-8fbe-4397-9dbb-9b2b20218538
UMA stats instrumentation for Renderer.AcceleratedFixedRootBackground

Along with http://crrev.com/23983017, this adds and makes use of
Renderer.AcceleratedFixedRootBackground UMA histogram.

Records three counts:
1. The total number of main frame scrolls.
2. The total number of main frame scrolls with an accelerated fixed root background.
3. The total number of main frame scrolls with an unaccelerated fixed root background.

R=hartmanng@chromium.org,asvitkine@chromium.org
BUG=None

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157457 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Include Frame.h in fewer translation units.

Merges parts of Andreas Kling's http://trac.webkit.org/changeset/155217

"Out-of-line the three methods on FrameView that were operating on
Frames.  Most of the call sites were in FrameView.cpp so they will still
get inlined."

On my system, this reduces the number of build steps that run after
touching Frame.h from 528 to 442 and reduces compilation time after
touching Frame.h from 8.5 minutes to 7 minutes.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157458 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make UTF-8 encoding of unpaired surrogates match Encoding standard

The Encoding standard says that unpaired UTF-16 surrogates in JS
strings should be converted into U+FFFD (replacement character)
during encode operations. This is (optionally) done already in
WTFString::utf8() but not handled in TextCodecUTF8.

BUG=277035

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157459 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Stop forcing setPageScaleFactor scrolls to be nonprogrammatic.

It turns out HistoryController calls setPageScaleFactor programmatically
and Mac back-button scroll restore is currently broken due to this.

The only reason we forced these to be user scrolls was in order to avoid
spurious programmatic scroll notifications to Chromium.  We are
currently not using these notifications and plan to delete that whole
system soon (as we've agreed not to ship the ScrollTo() url-bar hiding
behavior if iOS Safari strips it out in iOS7, which they appear on track
to do).

We forgot to cover this quirk with any ProgrammaticScrollTests when we
introduced it, so no test change required.

NOTRY=true
BUG=271136

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157460 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add use counter for hasAttributes

hasAttributes was removed from DOM4.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157461 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix emulate-touch-event test to pass reliably

This test was failing because mousemove events are generated during touch emulation when preventDefault isn't called on the touch event.  I've filed BUG 168399 to track this (and some other) issues with how touch event emulation behaves, but fixed the test to properly test the current behavior by calling preventDefault on the touch event.

BUG=241665

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157462 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Leverage the fact that we already know the array size in V8Binding's array converting

Leverage the fact that we already know the array size in V8Binding's array converting.
Use Vector::reserveInitialCapacity(length) to make sure we allocate enough memory for
all the elements. This allows us to use Vector::uncheckedAppend() instead of
Vector::append() which bypasses capacity checks for each loop iteration.

R=haraken
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157463 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark tiny-layer-rotated as needing rebaseline

TBR=leviw
BUG=287477

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157464 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Have handleMaxRecursionDepthExceeded() take an isolate in argument

Have handleMaxRecursionDepthExceeded() take an isolate in argument to
avoid calling v8::Isolate::GetCurrent().

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157466 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Optimize canvas fill and drawImage with SourceIn, DestinationIn, SourceOut, and DestinationAtop using transparencyLayer.

SourceIn, DestinationIn, SourceOut, and DestinationAtop need to update an
entire canvas, and transparencyLayer can handle well if amending little.

The previous implementation requires new GraphicsContext creation. It is better
to delegate this to skia. Especially, the previous implementation causes large
performance hit to GPU implementation (i.e. ACCELERATED_2D_CANVAS).

BUG=278935
TEST=fast/canvas/canvas-composite-alpha.html
     fast/canvas/canvas-composite-canvas.html
     fast/canvas/canvas-composite-fill-repaint.html
     fast/canvas/canvas-composite-image.html
     fast/canvas/canvas-composite-transformclip.html
     fast/canvas/canvas-composite.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157467 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Include Frame.h from fewer generated translation units.

touching Frame.h and rebuilding:
* Before: runs 442 build steps
* After:  runs 420 build steps
* The incremental build becomes 7% faster

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157468 bbb929c8-8fbe-4397-9dbb-9b2b20218538
WebImageCache: only clear if the underlying instance is available.

The clear() API is exposed as static and can be called after the
underlying instance has been shutdown (or not created).

BUG=286402

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157469 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r157464

http://src.chromium.org/viewvc/blink?view=revision&revision=157464

BUG=287477
TBR=enne@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157470 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove EventHandler::handleMouseUp().

This used to call EventHandler::eventActivatedView(), which was removed
in r149444.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157471 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove a few more unneeded Frame.h includes.

Reduced number of build steps after touching Frame.h from 420 to 410.

BUG=none
R=eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157472 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Avoid duplicating rootElement() call in SVGDocument

BUG=None

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157473 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unnecessary RenderView.h inclusion from headers.

Merges http://trac.webkit.org/changeset/155074

Reduces number of build steps run after touching RenderView.h from 157 to 114,
makes incremental build 25% faster.

BUG=none
R=eseidel@chromium.org

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

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