Refactor module initialization.

Previous implementation had three CoreInitializer methods: initEventNames,
initEventTargetNames, and initBindings, which were never called, and
ModulesInitializer contained identically named methods which were a
superset of the base class implementation. This change removes duplication
and separates core and modules initialization for a cleaner implementation.

This change doesn't fix 393728, but is a necessary refactoring for the
actual fix.

BUG=393728

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180130 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused shouldOnlyIncludeDirectChildren

It seems this one is no longer needed, just
the one in HTMLCollection is used.

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

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

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

TBR=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180132 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Disentangle blend mode from updateDescendantDependentFlags

Instead of driving the blend mode computation from
updateDescendantDependentFlags, this CL drives the blend mode computation from
CompositingInputsUpdater. Using this approach lets us remove a bunch of
bookkeeping because CompositingInputsUpdater does all the bookkeeping for us.

Because CompositingInputsUpdater happens during the compositing update, we need
to add some code to the compositing update to run the CompositingInputsUpdater
even when compositing isn't available (e.g., SVGImage and InspectorOverlay).

R=esprehn@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180133 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add lib directory to app.yaml for sheriff-o-matic.

The directory was added recently and needs to be here so that
the right thing is uploaded to appengine.

TBR since this breaks pushing to appengine.

TBR=leviw@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180134 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename repaint to paintInvalidation in core/rendering/svg.

This CL renames all of the repaint methods in core/rendering/svg to be
paintInvalidation.

BUG=338691

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180136 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Decouple arity errors creation from throwing.

In order to reduce duplicated functions between V8Binding.h and
ScriptPromise.h, this CL adds arity error creation functions to V8Binding.h
and deletes arity error throwing functions from V8Binding.h and
ScriptPromise.h.

BUG=359411

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180137 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Cleanup: Remove getSmartClipData function from WebView API.

This function is only implemented by blink_web, but not called by
anyone, anywhere.

There are not callers of it on Blink nor on Chromium.

This fixes the TODO in WebView.h

BUG=None
TEST=None
R=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180138 bbb929c8-8fbe-4397-9dbb-9b2b20218538
WorkerThread should not start execution if WorkerThread::stop is already called

If WorkerThread::stop is already called, WorkerThread::initialize should return immediately without starting the thread execution.

BUG=403179
TEST=none (it's timing-dependent)

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180139 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Fix RawPtr to Member in MediaKeySession::PendingAction

BUG=402766, 403121
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180140 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Service Worker: Tests for unregister then register

These are tests for the Chromium patch r288994:
https://codereview.chromium.org/413063004

Our current shortcomings are:
- New-scope registration overrides the existing registration. This is an
existing bug: https://code.google.com/p/chromium/issues/detail?id=398355
- register() should wait before resolving if docs are using an unregistered
registration. This is a new spec requirement.
- We don't do "early-rejection" described by
https://github.com/slightlyoff/ServiceWorker/issues/396. Also a new spec
requirement.

BUG=388095

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180141 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add lextab.pyc as an output of the cached_lex_yacc_tables action

The primary output is lextab.py, but since it is imported, Python also
writes lextab.pyc. Listing it too as an output means it won't be left
around by "ninja -t clean" (and not much else, I think.)

Prior to the patch
  https://codereview.chromium.org/425953002/
the result of not having lextab.pyc listed as an output and running
"ninja -t clean" was a tree that would build correctly, but that would
always rerun all the IDL code generation scripts, and thus never become
"clean".

BUG=397909

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180142 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Range.deleteContents shouldn't throw HierarchyRequestError on doctype

SPEC: http://dom.spec.whatwg.org/#dom-range-deletecontents

Unlike extractContents, deleteContents doesn't throw error.
So this CL modified implementation as per specified.

Behavior in other browsers.
*)FF: PASS
*)IE: PASS

In addition 4 failed cases will be passed with this CL in
http://w3c-test.org/dom/ranges/Range-deleteContents.html

TEST=LayoutTests/fast/dom/Range/deleteContents-doctype.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180143 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: NetworkPanel: remove unused CSS.

BUG=316092
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180144 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: NetworkPanel: remove noop CSS.

BUG=316092
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180145 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename V8WindowShell to WindowProxy

V8WindowShell is an implementation of "WindowProxy" in the spec
(http://www.w3.org/TR/2009/WD-html5-20090423/browsers.html#windowproxy).
We should rename it accordingly.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180146 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: make r180096's FIXME comment accurate.

The underlying cause described in r180096 wasn't correct; update the
FIXME comment to make it more accurate.

R=haraken
BUG=
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180147 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Make GC button in timeline to fire gc events in all targets

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180148 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: fix (release) builds after r180088.

R=haraken
BUG=340522
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180149 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Animations: Make perf tests for web animations animate properly.

Web Animations uses ms for duration, while legacy keyframe animations uses sec
for duration. Currently, the given perf tests use sec, so animations are weird.

BUG=309981

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

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