Source/WebCore/platform/graphics/skia/ImageSkia.cpp
FloatRect normalizeRect(const FloatRect& rect)
{
    FloatRect norm = rect;
    if (norm.width() < 0) {
        norm.setX(norm.x() + norm.width());
        norm.setWidth(-norm.width());
    }
    if (norm.height() < 0) {
        norm.setY(norm.y() + norm.height());
        norm.setHeight(-norm.height());
    }
    return norm;
}
// A helper method for translating negative width and height values.
A helper method for translating negative width and height values.
A helper method for translating negative width and height values .
FloatRect normalizeRect(const FloatRect& rect)
{
    FloatRect norm = rect;
    if (norm.width() < 0) {
        norm.setX(norm.x() + norm.width());
        norm.setWidth(-norm.width());
    }
    if (norm.height() < 0) {
        norm.setY(norm.y() + norm.height());
        norm.setHeight(-norm.height());
    }
    return norm;
}
FloatRect normalizeRect ( const FloatRect & rect ) { FloatRect norm = rect ; if ( norm . width ( ) < 0 ) { norm . setX ( norm . x ( ) + norm . width ( ) ) ; norm . setWidth ( - norm . width ( ) ) ; } if ( norm . height ( ) < 0 ) { norm . setY ( norm . y ( ) + norm . height ( ) ) ; norm . setHeight ( - norm . height ( ) ) ; } return norm ; }
A helper method for translating negative width and height values.
A helper method for translating negative width and height values .