Refactoring: Add an Event factory function to create a simple event.

It's equivalent to Event::create(name, false, false).
http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#fire-a-simple-event

BUG=none
TEST=none; no behavior changes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156804 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactoring: execute, isEnabled, state, value functions of EditorInternalCommand class should take a Frame reference argument.

They are always non-null. On the other hand, the frame argument of
isSupportedFromDOM can be null.

BUG=none
TEST=none; no behavior changes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156805 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move form submission scheduling to HTMLFormElement

Also, when a form is submitting with a target specified, find the target after the navigation timer fires, rather than before. This matches the behavior of all other navigations that route through NavigationScheduler.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156806 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Removed unused methods from ThreadRestrictionVerifier.h.

This enables us to usefully remove some includes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156807 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fixed lost context handling in ANGLE_instanced_arrays

BUG=280249

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156808 bbb929c8-8fbe-4397-9dbb-9b2b20218538
fast/parser/entity-comment-in-title.html becomes flaky with lazy attaching from the parser.

The whitespace text node at the end flakily gets rendered. This is
just an issue with our whitespace textnode handling. For now, make
the test deterministic by forcing a layout at the end of parsing.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156809 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Cleanup: remove WebCryptoResultPrivate from blink API.

The interface had originally been exposed for chromium-side unit-tests, but jamesr suggests using a different approach.

This change also moves CryptoResult to a standalone file.

BUG=245025

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156810 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Let the Escape key dimiss the active modal <dialog>

With this patch, hitting Escape causes a 'cancel'
event to be fired at the <dialog>. The default
action of 'cancel' is to close the dialog.

This is as per the spec, under "Canceling dialogs":
http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#the-dialog-element

BUG=253357

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156811 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix the remaining wtf includes.

Patch generated with thakis's script:

git grep -l '#include <wtf' | xargs sed -i -e 's/#include <\(wtf\/[^>]*\)>/#include "\1"/'

BUG=254653
R=abarth@chromium.org,thakis@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156812 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Store the Document's encoding on the Document

This adds storage to a Document for its encoding as a prerequisite for
moving ownership of the decoder from the Document to the parser. The
encoding may be set explicit or by the decoder. This storage is temporarily
redundant with the Document::m_decoder->m_encoding storage, but this will
stop being redundant when the decoder moves.

We'll have to store a few more pieces of information on the Document such
as information about where the encoding came from in future patches.

BUG=277886

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156813 bbb929c8-8fbe-4397-9dbb-9b2b20218538
WTF include cleanup: don't leak system headers stdio.h and inttypes.h.

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

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