fast/dom/title-directionality.html should trigger a recalc style before reading testRunner.titleTextDirection

We don't know the real text direction of the title until we do a recalc style since
CSS can change the direction. This does mean that if the parser lazy attaches that we
probably flash the title text in the wrong direction if CSS would have changed it. We
might want to consider making HTMLTitleElement::textWithDirection look at the dir attribute
if there's no style so this doesn't happen.

BUG=276687

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156510 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add toSVGMissingGlyphElement(), and use it.

As a step to clean-up static_cast<SVGXXX>, toSVGMissingGlyphElement() is added to clean-up
static_cast<SVGMissingGlyphElement*>.

Additionally, curly brace style error is fixed.

BUG=N/A

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156511 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make fast/forms/time-multiple-fields/time-multiple-fields-focus.html work when the parser lazy attaches

autofocus doesn't happen until an element attaches which means that we need to
trigger a recalc style in this test before looking at the activeElement.

BUG=276687

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156512 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Introduce toHTMLFrameElementBase and use it.

BUG=none
TEST=none; no behavior changes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@156513 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make AttachBehavior a required argument.

This way we have a clear list of DeprecatedAttachNow calls to work through.
This required making ExceptionState a required argument as well.

In a future patch, I'll make AttachBehavior default to AttachLazily and ExceptionState default to ASSERT_NO_EXCEPTION.

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

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