Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/Image.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Image.cpp b/third_party/WebKit/Source/platform/graphics/Image.cpp
index f208d6d21809ab821597f5c6e1b221e25919b237..e0ebcfaf7a469c0f542b14bebd69ce34a4e3a124 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Image.cpp
@@ -134,8 +134,9 @@ void Image::drawTiledBorder(GraphicsContext& ctxt,
FloatSize tileScaleFactor = providedTileScaleFactor;
if (vRule == RoundTile) {
float vRepetitions =
- std::max(1.0f, roundf(dstRect.height() /
- (tileScaleFactor.height() * srcRect.height())));
+ std::max(1.0f,
+ roundf(dstRect.height() /
+ (tileScaleFactor.height() * srcRect.height())));
tileScaleFactor.setHeight(dstRect.height() /
(srcRect.height() * vRepetitions));
}
@@ -359,13 +360,14 @@ FloatRect Image::computeTileContaining(const FloatPoint& point,
const FloatSize& tileSpacing) {
const FloatSize actualTileSize(tileSize + tileSpacing);
return FloatRect(
- FloatPoint(
- point.x() + fmodf(fmodf(-tilePhase.x(), actualTileSize.width()) -
- actualTileSize.width(),
- actualTileSize.width()),
- point.y() + fmodf(fmodf(-tilePhase.y(), actualTileSize.height()) -
- actualTileSize.height(),
- actualTileSize.height())),
+ FloatPoint(point.x() +
+ fmodf(fmodf(-tilePhase.x(), actualTileSize.width()) -
+ actualTileSize.width(),
+ actualTileSize.width()),
+ point.y() +
+ fmodf(fmodf(-tilePhase.y(), actualTileSize.height()) -
+ actualTileSize.height(),
+ actualTileSize.height())),
tileSize);
}

Powered by Google App Engine
This is Rietveld 408576698