Don't use updateStyleForNodeIfNeeded in ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded

It's not correct to use updateStyleForNodeIfNeeded in this method because it's going
to return a raw pointer to a RenderStyle and a later call could cause a style recalc
which would free this style (and might also change the style of this node).

Instead we should call updateStyleIfNeeded() before the calls to this method.

BUG=285787

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

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

We'd like to avoid vanilla static_cast<>.

BUG=none
TEST=none; no behavior changes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157338 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactoring: Do not create unused InputType objects.

HTMLInputElement::updateType should not create an InputType object in a case
that it won't be used.

This CL revert r156902, and re-land r156622.

BUG=277843
TEST=none; no behavior changes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157339 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactoring: Extract firstLetterLength method from RenderBlock::createFirstLetterRenderer

BUG=none
Test=none; no behavior changes.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157340 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Frameset leaves partially laid out tree

The issue was that <frameset> can have some <frame> or <frameset>
descendants that wouldn't get their needsLayout flags cleared as
we only walked direct children.

BUG=267193

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157341 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r157332

http://src.chromium.org/viewvc/blink?view=revision&revision=157332

BUG=166847
TBR=leviw@chromium.org

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

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