示例#1
0
void FloatPoint::move(const FractionalLayoutSize& size)
{
    m_x += size.width();
    m_y += size.height();
}
IntSize pixelSnappedIntSize(const FractionalLayoutSize& s, const FractionalLayoutPoint& p)
{
    return IntSize(snapSizeToPixel(s.width(), p.x()), snapSizeToPixel(s.height(), p.y()));
}
示例#3
0
FloatSize::FloatSize(const FractionalLayoutSize& size) : m_width(size.width()), m_height(size.height())
{
}