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