Fix improper scrollTop/Left usage in LayoutTests/

Rule of thumb here is: if in strict mode, documentElement element
should be used to operate over scrollTop/Left properties.
When in quirks mode, use 'body' element.

CL fixes many layout tests caught by an UseCount/Console warning
being added by https://codereview.chromium.org/26489005/ that
were abusing the relaxed body.scrollTop/Left support Blink currently has.

The exception is LayoutTests/jquery/offset.html, where jQuery on purpose
uses both documentElement and body elements, for cross engine support.

R=Julien Chaffraix, Dan Beam

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159195 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Get rid of of custom code for Clipboard.setDragImage()

Introduce a setDragImage() method in Clipboard whose prototype matches the
JavaScript one. Have this method call setDragImageResource() or
setDragImageElement() depending on the input type.

The first parameter type in Web IDL is now an Element, to match the
specification:
http://www.w3.org/html/wg/drafts/html/master/editing.html#datatransfer

There is no web-exposed behavior change.

TEST=ManualTests/drag-with-div-or-image-as-data-image.html
R=haraken

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159196 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Blink gardening: rebase image expectations

TBR=enne@chromium.org
NOTRY=true
BUG=N/A

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159197 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix heap-use-after-free in GraphicsLayer::setContentsClippingMaskLayer

BUG=305279

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159198 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Blink gardening: update test expectation that was broken in r159185

r159185 reverted a change, but it didn't contain expectation update.

TBR=enne@chromium.org
NOTRY=true
BUG=304986

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159199 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Blink gardening: image rebase for hindi-spacing.html

TBR=enne@chromium.org
NOTRY=true
BUG=N/A

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159200 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix get_latest_build to return actual latest build

The code and tests implicitly assume that converting from a list
to a set to a list again does not change ordering. This seems
to be true for small lists, such as the one in the unit tests. For
a list of, say, 200 items, this is not true.

The fix is to add a call to sorted() before indexing the list
of latest cached builds.

BUG=305392

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159201 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Blink gardening: fast/encoding/api/streaming-decode.html crash flakily

TBR=enne@chromium.org
NOTRY=true
BUG=305476

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

git-svn-id: svn://svn.chromium.org/blink/trunk@159202 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Collapsed space never worked properly if we have spaces inside and/or after a Bidi-isolate.
The problem happens in two parts of the code:

1. The midpointState is not updated properly in addFakeRunIfNecessary. So when 
an isolated run is added the next midpoint state is wrong.
2. Since isolated runs have a two pass algorithm. In the second pass the 
midpoint state is wrong.

This patches fixes the first problem implementing a method called 
adjustMidpointsAndAppendRunsForObjectIfNeeded, when a fake run is added it basically 
updates the midpointState properly. And the second problem is fixed
saving and restoring the midpointState for Bidi-isolate inlines.

BUG=304701

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

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