Rebaseline mp3 codec test on Mac.

BUG=237676

Not sure why this didn't show up before in https://codereview.chromium.org/18130002/, but the mp3 codec test needs to be rebaselined as well.

R=dalecurtis@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154051 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Close typing on Editor::setSelectionOffsets()

Typing command must be closed when selection offsets change
in order to persist that selection change.

BUG=239923

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154052 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Avoid N^2 walk placing renderers when building the render tree

Blink resolves style by walking each element from first children to last, but
when we go to insert their renderer, we look for the next renderer to insert
before. On the initial style resolve, this means we'll walk the entire DOM
tree trying to find the right renderer to insert before leading to an N^2
loop over the DOM on load.

This could be fixed by changing the semantics by which we insert renderers
(insert after instead of insert before). Instead, here I reverse the order
we resolve style. This should ensure that in the common case, we'll find
the renderer to insert before immediately.

While looking at this, I also found we have an N^2 loop for resolving
Nth last child selectors, and reversing the style resolve loop would have
caused the same issue for Nth child selectors. To fix prevent this regression,
I'm piping the child index down to the style resolver in the common case.
This ensures both Nth and Nth last should usually be O(1).

The previous version of this patch resulted in a perf regression due to
the extra in-order loop in Element::recalcStyle. This loop is now gated
on the presence of child or sibling selectors. The common case should
be faster.

Previous code review: https://chromiumcodereview.appspot.com/15871005
BUG=245478

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154053 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rewrite parseFrameSetListOfDimension to match HTML5

HTML5 defines the "rules for parsing a list of dimensions" in section
2.4.4.6. Those rules are very close to our legacy code with a couple
of differences:
- For inputs with only leading spaces and a unit, HTML5 return 0 with
the specified unit. The old code would return (1, Relative).
- HTML5 allow doubles for every units and not just percentage.

The 2 new behaviors are more consistent with the author's intent (and
are corner cases) so the compatibility risk of this change is small.

R=ojan@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154054 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove superfluous scoping for UnitTypes values in CSSPrimitiveValue

R=dstockwell@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@154055 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Style resolution: Apply animation properties earlier in a separate pass

In order to apply the results of animations earlier in the style cascade
we need to apply animation related properties, generate animations and
trigger transitions earlier in the process.

This change introduces a new pass in the style application process which
allows animation properties to be applied after variable definitions but
before high priority and low priority properties.

Evaluated performance using html5-full-render perf test on Nexus 7 and
observed no regression.

Covered by existing tests. No change in behavior.

BUG=232273

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

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