Simplify LineWidth::wrapNextToShapeOutside()
authorbjonesbe@adobe.com <bjonesbe@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Jan 2015 21:25:08 +0000 (21:25 +0000)
committerbjonesbe@adobe.com <bjonesbe@adobe.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Jan 2015 21:25:08 +0000 (21:25 +0000)
commitdfde94d9ef6a175f600cb29a2f0fec245c7907ab
tree0ba8958540aa474d6d61560e253ef7cf0d7f3d4e
parenta9bfa9a33df5215eb46e81153c3d3e40819a8cbf
Simplify LineWidth::wrapNextToShapeOutside()
https://bugs.webkit.org/show_bug.cgi?id=140304

Reviewed by Zoltan Horvath.

This function used to manually check to see if the entire height of
the line would have enough space next to the float. However, the code
to compute the offsets will do this automatically (and probably a lot
faster), if the line height is passed in. This patch does just that.

No new tests, no behavior change.

* rendering/line/LineWidth.cpp:
(WebCore::availableWidthAtOffset): Remove now unused override, allow
    passing in lineHeight.
(WebCore::LineWidth::wrapNextToShapeOutside): Pass the lineHeight
    when computing the available width, so we don't need to check
    isWholeLineFit anymore.
(WebCore::isWholeLineFit): Deleted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@178193 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/rendering/line/LineWidth.cpp