FloatingObjectInterval FloatingObjects::intervalForFloatingObject(FloatingObject* floatingObject) { // FIXME The endpoints of the floating object interval shouldn't need to be // floored. See http://wkb.ug/125831 for more details. if (m_horizontalWritingMode) return FloatingObjectInterval(floatingObject->frameRect().y().floor(), floatingObject->frameRect().maxY().floor(), floatingObject); return FloatingObjectInterval(floatingObject->frameRect().x().floor(), floatingObject->frameRect().maxX().floor(), floatingObject); }
inline FloatingObjectInterval FloatingObjects::intervalForFloatingObject( FloatingObject& floatingObject) { if (m_horizontalWritingMode) return FloatingObjectInterval(floatingObject.frameRect().y(), floatingObject.frameRect().maxY(), &floatingObject); return FloatingObjectInterval(floatingObject.frameRect().x(), floatingObject.frameRect().maxX(), &floatingObject); }
inline FloatingObjectInterval FloatingObjects::intervalForFloatingObject(FloatingObject& floatingObject) { if (m_horizontalWritingMode) return FloatingObjectInterval(floatingObject.frameRect().pixelSnappedY(), floatingObject.frameRect().pixelSnappedMaxY(), &floatingObject); return FloatingObjectInterval(floatingObject.frameRect().pixelSnappedX(), floatingObject.frameRect().pixelSnappedMaxX(), &floatingObject); }