[SVG] Clipping non-SVG elements should observe the zoom factor.

When applied to non-SVG elements, SVG clips do not receive a CTM with
the zoom factor included (they are applied outside of any RenderSVGRoot
context).

This CL updates RenderSVGResourceClipper::applyClippingToContext() to
compensate for the missing factor - but only when using userSpaceOnUse
units: for objectBoundingBox units, the zoom is accounted for during
length resolution.

R=pdr@chromium.org,schenney@chromium.org
BUG=272223

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162650 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fixing indent/outdent for <li> elements containing children spanning across
multiple lines (paragraphs).
For such cases the selection only encompasses children contained within the
first paragraph (within the li), thereby causing incorrect behavior when indenting.
Thus we need to ensure while inserting a new li element and cloning the original,
that all the children are considered.

With this change, an existing test: indent-pre-list.html fails because of the
previous incorrect behavior. Two <li>s were created for the indented <li>
with the text contained within the first paragraph forming the first and the
remaining content moving to the second <li> element.
This has now been fixed resulting in only a single indented <li>.

Bug: http://crbug.com/321567

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

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

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

BUG=258896
TBR=steveblock@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162652 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Avoid n^2 reattach of whitespace siblings when there are many display: none elements

Keep track of the nextTextSibling while doing a recalcStyle to avoid n^2 when appending
lots of display: none elements to a parent that's visible.

This isn't as effective as the WhitespaceChildList was since you could have a whitespace
node and then a thousand divs and then another whitespace and this will want to skip all
those divs looking for the next whitespace, but that situation is probably rare compared
to infinite scroll apps that append lots of siblings that are display: none to preload
content into the DOM.

BUG=323176,322619

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

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

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

BUG=120453
TBR=ksakamoto@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162654 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fire overflowchanged events at raf timing

Running script inside layout leads to nasty security bugs and crashes,
instead we should defer overflowchanged events until raf time. This still
lets the author take an action before the paint preventing blinking and
jumpiness which was the reason we ran it inside layout, while avoiding the
pitfalls of synchronous script.

Unfortunately this patch makes us start firing overflowchanged even when a
node has been removed from the tree, but the old protection against it was
bad since it only checked inDocument() so removing a node and putting it in
another document would still let the event fire. Instead I plan to fix the
detach problem in a future patch since scroll events shouldn't fire for
detached nodes either.

This patch also lets us remove the paused-event-dispatch.html test which
was testing the suspend/resume logic I removed and for crashes that happen
with synchronous script inside layout which doesn't apply after this patch.

BUG=293534,323283
TEST=fast/events/overflowchanged-event-raf-timing.html

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

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

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

TBR=vollick@chromium.org

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

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

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

TBR=seokju.kwon@gmail.com

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

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

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

BUG=322887
TBR=schenney@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162658 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Massage FontCache::getFontResourcePlatformData logic.

It's gotten quite hairy over time and I was having difficult time
reasoning about it, so FTFY.

BUG=315783
R=eae

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162659 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark virtual/threaded/animations/keyframe-multiple-timing-functions-transform.html as flaky.

It's blocking my CQ submissions. :(

TBR=steveblock@chromium.org

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

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