Change event handling order in HTMLPlugInElement.

Currently, plugins receive events as a "default handler" when an
event is fired. "Default handlers" are called after the capturing and bubbling
phases. This means that there is no way for a plugin to stop propagation of an
event if it so desires.

This change causes plugins to receive events "at target" so they may stop
propagation of an event for the bubbling phase.

BUG=324351

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169059 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Calculate JS Arrays size only in heap snapshot statistics.

Previously it calculated the size of all arrays, which is not very
informative to the user as lots of objects are arrays internally.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169060 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify checking whether loading is complete

Make DocumentLoader::isLoadingInApiSense a static private in FrameLoader, remove a silly use of it in ResourceFetcher.

Make checkLoadCompleteForThisFrame check its subframes directly in a postorder traversal. This makes FrameLoader::subframeIsLoading() unnecessary and allows us to cleanly ensure we're not checking a frame's state multiple times during the traversal.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169061 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Skip failing test introduced on http://crrev.com/187923004

R=arv@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169062 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove document param from parseSystemColor

The document parameter was introduced in http://trac.webkit.org/changeset/78442 because it was needed to get to the system colors. However this now can be accessed using a RenderTheme singleton so remove the parameter.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169063 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Replace FontTraitsMask with struct

Replace the FontTraitsMask bit fiddling with a struct and change
FontDescription, FontFace, CSSSegmentedFontFace and FontFaceCache to
use the struct instead of the mask thereby greatly simplifying the
code.

BUG=351734
R=eseidel@chromium.org

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

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