fast/text/international/hindi-spacing.html is flaky

So mark it so, and on all platforms (see bug).

TBR=jamesr@chromium.org
BUG=247575

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151995 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). 

Using the microbenchmark created for lazy layout,
http://elliottsprehn.com/personal/lazyblock/, this yields a speedup of
nearly 50% (4.75s -> 2.51s).

BUG=245478

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151996 bbb929c8-8fbe-4397-9dbb-9b2b20218538
SerializedScriptValue shouldn't upconvert strings

Before this CL, SerializedScriptValue was calling utf8Buffer, which upconverted
its String argument on the road to converting it to UTF-8. This CL deletes that
function in favor of StringUTF8Adaptor which avoids upconverting (and even
avoids copying in many cases).

R=eseidel
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151997 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Allow transition tests to specify timed callbacks.

This will allow more setTimeout based transition tests to be rewritten in a less flaky form using the test helpers.

Rewrote transitions/interrupt-zero-duration.html to demonstrate the new style.

BUG=235752

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

git-svn-id: svn://svn.chromium.org/blink/trunk@151999 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Control MediaDocument playback with media keys

BUG=246547

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

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

numCSSValueKeywords was too small by one.

BUG=243646

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152001 bbb929c8-8fbe-4397-9dbb-9b2b20218538
childrenChanged should be invoked when updating a text of the style in shadow tree.

HTMLStyleElement::childrenChanged notify DocumentStyleSheetCollection to update
active stylesheets.
If the method is not invoked, old styles will be applied to elements in shadow tree.

TEST=LayoutTests/fast/dom/shadow/update-text-of-style-in-shadow-dom.html
BUG=247280

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152002 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Reformat Gradient.h to conform to Blink coding style.

This CL removes the extra indentation and corrects the // namespace comment.

Incidentally, another forward declaration was added and some vertical whitespace
was removed.

BUG=247144

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152003 bbb929c8-8fbe-4397-9dbb-9b2b20218538
SVG objects are misplaced when SVG root has CSS transform (zalan@apple.com)

This is a merge of wkrev.com/151265 by zalan@apple.com.

SVG root, similarly to RenderBlock needs to call RenderLayer
to get transforms updated after layout, in order to
position the transformed objects properly.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152004 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Get rid of extraneous accessibility tree traversal code.

We never used AccessibilityRenderObject::previousSibling, and
I've been scared for a long time someone would accidentally
use it and we'd discover it's full of bugs, since it had no
test coverage. (Several bugs have been caught in nextSibling over
the years.) Time for it to die.

We also don't need AccessibilityObject::lastChild, though
the implementation was trivial.

The public interface needs even less - we can get rid of
firstChild, lastChild, nextSibling, and previousSibling,
because childAt is the only one called.

BUG=247082
R=eseidel@chromium.org, jamesr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152005 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Avoid redundant ceilToFloat call in RenderBlock

R=leviw@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@152006 bbb929c8-8fbe-4397-9dbb-9b2b20218538
mv public/webview to public/webpage

Based on the discussion in https://codereview.chromium.org/16358003/, it sounds
like folks prefer the name public/webpage to public/webview.

R=jamesr@chromium.org
BUG=239545

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

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