instead of just rounding the width/height values. snapSizeToDevicePixel() requires absolute coordinates, while RenderBox has relative coordinates only (absolute coordinates are computed at painting time)