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

Unified Diff: third_party/WebKit/Source/core/paint/TextPainter.h

Issue 2392443009: reflow comments in core/paint (Closed)
Patch Set: Created 4 years, 2 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/core/paint/TextPainter.h
diff --git a/third_party/WebKit/Source/core/paint/TextPainter.h b/third_party/WebKit/Source/core/paint/TextPainter.h
index caedf3547520327a0b98b181cbd10b23432f74dd..0b58bd98bdea51645ede7b13ef30645d8d04fbd9 100644
--- a/third_party/WebKit/Source/core/paint/TextPainter.h
+++ b/third_party/WebKit/Source/core/paint/TextPainter.h
@@ -124,13 +124,17 @@ inline AffineTransform TextPainter::rotation(
RotationDirection rotationDirection) {
// Why this matrix is correct: consider the case of a clockwise rotation.
- // Let the corner points that define |boxRect| be ABCD, where A is top-left and B is bottom-left.
+ // Let the corner points that define |boxRect| be ABCD, where A is top-left
+ // and B is bottom-left.
- // 1. We want B to end up at the same pixel position after rotation as A is before rotation.
+ // 1. We want B to end up at the same pixel position after rotation as A is
+ // before rotation.
// 2. Before rotation, B is at (x(), maxY())
- // 3. Rotating clockwise by 90 degrees places B at the coordinates (-maxY(), x()).
+ // 3. Rotating clockwise by 90 degrees places B at the coordinates
+ // (-maxY(), x()).
// 4. Point A before rotation is at (x(), y())
- // 5. Therefore the translation from (3) to (4) is (x(), y()) - (-maxY(), x()) = (x() + maxY(), y() - x())
+ // 5. Therefore the translation from (3) to (4) is (x(), y()) - (-maxY(), x())
+ // = (x() + maxY(), y() - x())
// A similar argument derives the counter-clockwise case.
return rotationDirection == Clockwise
« no previous file with comments | « third_party/WebKit/Source/core/paint/TableSectionPainter.cpp ('k') | third_party/WebKit/Source/core/paint/TextPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698