Completed the implementation of RasterShape::firstIncludedIntervalLogicalTop(). The method now computes first logical top location where a line segment can be laid out within a RasterShape, i.e. a shape derived from an image valued URL resource. A detailed description of the algorithm can be found in http://hansmuller-webkit.blogspot.com/2013/08/first-fit-location-for-image-shapes.html.

The new tests exposed a bug in the existing getIncludedIntervals() method. A shape with a vertical gap that spans the entire line now causes the method to short circuit and return an empty interval list.


BUG=273834

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

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