Make some WebCrypto parameters const.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157278 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused functions applyEditingStyleToBodyElement() and applyEditingStyleToElement() in Editor

This patch removes following unused functions:
 - Editor::applyEditingStyleToBodyElement()
 - applyEditingStyleToElement()

BUG=n/a
TEST=n/a; no behavior changes
R=tkent@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157279 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move webfont usage metrics reporting to FontResource

CSSFontFaceSource::FontLoadHistograms class reported WebFont.UsageType
and WebFont.StyleRecalcToDownloadLatency metrics. But CSSFontFaceSource
is destructed/reconstructed when a new @font-face is added to the
stylesheet, so these metrics were reported more than once for single
webfont when the web page dynamically generates @font-face rules.
That caused unexpectedly high "Styled, but not used" count of
WebFont.UsageType.

To avoid this, this patch moves the reporting code to a inner class of
FontResource, and rename the histogram names to WebFont.Resource.*.
The metrics are recorded at most once for each FontResource object
which is retained by the memory cache.

BUG=246492

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157280 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make Range::processContentsBetweenOffsets() to handle node modification by mutation event handler

This patch changes ASSERT statements for checking |endOffset| inbound in Range::processContentsBetweenOffsets() to limit |endOffset|. This situation can be happened when DOMNodeRemovedFromDocument event handler splits text nodes, Range::insertNode() on text node, in the range calling Range::deleteContents().

This is the last part of fixing issue 240594.

BUG=240594
TEST=LayoutTests/fast/dom/Range/range-delete-contents-mutation-event-crash.html
R=tkent@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157281 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove PossiblyNull from WTF

WTF::PossiblyNull class had been used in tryFast*alloc API which was removed at r155495, so this is dead code now.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157282 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Crash when opening web page http://build.webkit.org/waterfall.

While distribution of spanning cell's extra height, Sorting of the
cell's comparator function is missing condition of arranging cells
based on accending order of row indexes.

R=jchaffraix@chromium.org
BUG=276253

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157283 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enable the initial Vector size to be set with a define.

This will enable quick perf experiments of different values without having to
wait for the experiment to hit (and depart) Chromium via a Blink roll. It will
be possible to simply set a gyp setting in Chromium.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157284 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: organize protocol tests by folders.

R=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157285 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: add screencast toggle button into the toolbar

BUG=285302
R=vsevik@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157286 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Allow context-less document dispatching events.

This change allows context-less documents like ones from XHR to
dispatch events. More precicely, it allows event listeners in these documents
to react dispatched events.

For that purpose, it introduces Document::m_contextDocument
which points the document of the context where the document is created.

To prevent inline event handlers on context-less documents from being fired,
the change extracts the eligibility check from V8LazyEventLitener
to Document::allowInlineEventHandlers() and tightens it, so that it says no
if the owner document of the event-holding node doesn't have context (=Frame).

BUG=275285, 285357
TEST=event-on-created-document.html, event-on-xhr-document.html, import-events.html,
     sub-imports-onload.html
R=abarth@chromium.org, dglazkov@chromium.org, esprehn@chromium.org

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

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