Allow configuring CPU profiler sampling interval

Added a setting for selecting higher sampling rate for CPU profiler 0.1ms sampling interval vs. default 1ms one.

BUG=v8:2814
R=loislo@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158180 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Build fix for win bot after r158180.

BUG=none
TBR=yurys@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158182 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Throw 'SecurityError' when calling window properties cross-origin.

Currently, we're returning 'undefined' when responding to a cross-origin
'call()' on window properties. We should match Gecko's behavior by
throwing a SecurityError in these cases.

'{add/remove}EventListener' are handled in a separate patch.

BUG=17325

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158183 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: introduce a buffering mode in timeline.

BUG=295334
R=caseq@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158184 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: fall back to fetching stylesheet source from the disk cache

BUG=292613
R=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158185 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify ArrayBuffer::setDeallocationObserver protocol.

Currently all clients need to manually call
v8::V8::AdjustAmountOfExternalAllocatedMemory, so they all depend on V8
API. The patch hides this and also makes the protocol more simple.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158186 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove typed array flags from V8 intialization.

Typed arrays and array buffers are enabled by default in V8 now, so
these flags are redundant.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158187 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "FileAPI: Add WebFileSystem::resolveURL" browser_tests are failing.

This reverts commit 619bc85ed46bd2a20e6d5834dd7d58edf20aa830.

Blink rolls get stuck after this path due to problems with FileManagerBrowserTests on Chrome OS.
See http://build.chromium.org/p/tryserver.chromium/builders/linux_chromeos/builds/156866/steps/browser_tests/logs/Test_1

BUG=none
TBR=nhiroki@chromium.org, japhet@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158188 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Fix for link highlighting of <img> links"

This reverts commit 697fa04c05532acdc7597c725042a9de1f28e72f.

The change was reverted due to the crash on the test.

BUG=none
TBR=bokan@chromium.org, japhet@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158189 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add use counter for the plugin legacy calls too

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158190 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 158014 "Hold onto contextElement() from SVGAnimated* wrap..."

Needed for reverting r157949 which is still causing ton of use-after-fress on ClusterFuzz.

> Hold onto contextElement() from SVGAnimated* wrappers.
> 
> SVG tearoff types holds onto its contextElement() from r157949, but SVGAnimated tearoffs didn't.
> This patch fixes the issue.
> 
> BUG=294464
> BUG=270000
> 
> Review URL: https://chromiumcodereview.appspot.com/23708048

TBR=kouhei@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158191 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 158191 "Revert 158014 "Hold onto contextElement() from SV..."

Unable to revert r157949 due to conflicts. So, reverting this fix.

> Revert 158014 "Hold onto contextElement() from SVGAnimated* wrap..."
> 
> Needed for reverting r157949 which is still causing ton of use-after-fress on ClusterFuzz.
> 
> > Hold onto contextElement() from SVGAnimated* wrappers.
> > 
> > SVG tearoff types holds onto its contextElement() from r157949, but SVGAnimated tearoffs didn't.
> > This patch fixes the issue.
> > 
> > BUG=294464
> > BUG=270000
> > 
> > Review URL: https://chromiumcodereview.appspot.com/23708048
> 
> TBR=kouhei@chromium.org
> 
> Review URL: https://codereview.chromium.org/23516016

TBR=inferno@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158192 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move tests to new import location

The import script was previously importing the tests into an incorrect
path. This change uses the latest import script to import all of the
shapes tests to the right location.

There are also some small changes in the tests since they had some more
metadata added upstream, but there are no functional changes in the
tests with this change.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158193 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Allow to compare heap snashots loaded from files

BUG=154084

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158194 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove canvas 2D context attributes from behind experimental canvas features flag.

BUG=234297

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158196 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Properly check for a zero-valued floating-point viewport argument

Zero-valued viewport arguments are given special treatment under certain
circumstances. Fix an issue where argument values less than 1 were incorrectly
cast to zero, resulting in an improperly configured viewport.

BUG=295886,282130

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

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

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

BUG=289420
TBR=andrei.prv@gmail.com

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

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

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

BUG=295500
TBR=a.suchit@samsung.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158199 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Notify the embedder when FrameLoader::stopAllLoaders is called.

The motivation is that out of process plugins get notified when the user presses the Stop button in the browser or when window.stop() is called, so that the plugin process can cancel its requests as well.

BUG=286074

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158200 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix regression in find-in-page behavior with tall blocks.

The refactoring http://crrev.com/19281007/ stopped making use of the
original target point, but this was actually needed to make sure we
don't snap to the top of the block for very tall ones.  This
particularly comes up in the context of find-in-page with tall blocks of
text, which appears not to work at all because of this.

New test coverage WebFrameTest.DivAutoZoomVeryTallTest.

NOTRY=true
BUG=286269,276832

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

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