Simplify setting lockBackForwardList() in NavigationScheduler.

Remove ScheduledNavigation::didStartTimer() and
HistoryController::currentItemShouldBeReplaced(). Replace
then with a new state on FrameLoaderStateMachine and inline
the new check in
NavigationScheduler::mustLockBackForwardList().

BUG=321280

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162384 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify same document navigation

Combine the state changes for pushState, replaceState, and standard same
document navigations.

Move some HistoryController commit notification calls from FrameLoader to
FrameLoaderClientImpl.

BUG=321280

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162385 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add workerGlobalScopeStarted() method to WorkerReportingProxy

So that proxy implementers can react when necessary.
(We want to use this for ServiceWorker)

Also rename some WorkerReportingProxy methods:
- postConsoleMessageToWorkerObject -> reportConsoleMessage
- postExceptionToWorkerObject -> reportException

Since the target may not always be the worker object.

BUG=none
R=abarth

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162386 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update the references to ui_resources target.

This target was moved into ui/resources/ui_resources.gyp in Chromium's
revision r236099 (crrev.com/236099).

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

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162387 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add WTF::Closure support in ExecutionContext::postTask()

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162388 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix error recovery in @-webkit-region body.

Currently CSS parser stops parsing everything inside @-webkit-region body
once it find something which is not a valid_region_rule. It could be a rule
with an invalid selector. The same happens with @-rules not allowed in
its body (@import, for example). However it ignores syntactically incorrect
allowed @-rules (for instance, "@font_face;").

This change makes the parser ignore all incorrect rules inside
@-webkit-region blocks.

TBR=tabatkins@gmail.com

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

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