Floats in the floating object list are ordered in the order that they are positioned. Following normal positioning rules, this means that the rightmost float in the set of left objects and the leftmost float in the set of right objects that actually intersect the vertical position specified in logicalLeftOffsetForLine and logicalRightOffsetForLine are the only floats we need to check.
Created attachment 86496 [details] Patch
Comment on attachment 86496 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=86496&action=review > Source/WebCore/ChangeLog:10 > + Floats in the floating object list occur in the order that they are positioned. This means > + that for a given vertical offset, the last left object in the list that intersects that offset > + will be the rightmost float. There is no need to check any previous floats, since they have to be > + further left than that rightmost float. The same rules hold true for right-aligned floats. One space after periods!
Fixed.