Lines Matching refs:y_scale
273 float y_scale) { in ScaleToEnclosingRect() argument
274 if (x_scale == 1.f && y_scale == 1.f) in ScaleToEnclosingRect()
283 std::floor(rect.y() * y_scale))); in ScaleToEnclosingRect()
287 std::ceil(rect.bottom() * y_scale))); in ScaleToEnclosingRect()
289 int y = static_cast<int>(std::floor(rect.y() * y_scale)); in ScaleToEnclosingRect()
293 y : static_cast<int>(std::ceil(rect.bottom() * y_scale)); in ScaleToEnclosingRect()
305 float y_scale) { in ScaleToEnclosingRectSafe() argument
306 if (x_scale == 1.f && y_scale == 1.f) in ScaleToEnclosingRectSafe()
309 int y = base::saturated_cast<int>(std::floor(rect.y() * y_scale)); in ScaleToEnclosingRectSafe()
311 int h = base::saturated_cast<int>(std::ceil(rect.height() * y_scale)); in ScaleToEnclosingRectSafe()
321 float y_scale) { in ScaleToEnclosedRect() argument
322 if (x_scale == 1.f && y_scale == 1.f) in ScaleToEnclosedRect()
327 std::ceil(rect.y() * y_scale))); in ScaleToEnclosedRect()
331 std::floor(rect.bottom() * y_scale))); in ScaleToEnclosedRect()
333 int y = static_cast<int>(std::ceil(rect.y() * y_scale)); in ScaleToEnclosedRect()
337 y : static_cast<int>(std::floor(rect.bottom() * y_scale)); in ScaleToEnclosedRect()
351 inline Rect ScaleToRoundedRect(const Rect& rect, float x_scale, float y_scale) { in ScaleToRoundedRect() argument
352 if (x_scale == 1.f && y_scale == 1.f) in ScaleToRoundedRect()
358 base::IsValueInRangeForNumericType<int>(std::round(rect.y() * y_scale))); in ScaleToRoundedRect()
362 std::round(rect.bottom() * y_scale))); in ScaleToRoundedRect()
365 int y = static_cast<int>(std::round(rect.y() * y_scale)); in ScaleToRoundedRect()
371 : static_cast<int>(std::round(rect.bottom() * y_scale)); in ScaleToRoundedRect()