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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageOrientation.h

Issue 2398453002: Rewrap comments to 80 columns in Source/platform/graphics/. (Closed)
Patch Set: Review feedback 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/platform/graphics/ImageOrientation.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageOrientation.h b/third_party/WebKit/Source/platform/graphics/ImageOrientation.h
index a3cccdcb6fccda02e41105fb4dce4d67860b5031..562ae8540fa115a45dba5a0d58c3cf9e837e0cc4 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageOrientation.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageOrientation.h
@@ -37,7 +37,8 @@ class FloatSize;
// This enum intentionally matches the orientation values from the EXIF spec.
// See JEITA CP-3451, page 18. http://www.exif.org/Exif2-2.PDF
enum ImageOrientationEnum {
- // "TopLeft" means that the 0 row starts at the Top, the 0 column starts at the Left.
+ // "TopLeft" means that the 0 row starts at the Top, the 0 column starts at
+ // the Left.
OriginTopLeft = 1, // default
OriginTopRight = 2, // mirror along y-axis
OriginBottomRight = 3, // 180 degree rotation
@@ -71,14 +72,15 @@ class PLATFORM_EXPORT ImageOrientation final {
// ImageOrientationEnum currently matches EXIF values, however code outside
// this function should never assume that.
static ImageOrientation fromEXIFValue(int exifValue) {
- // Values direct from images may be invalid, in which case we use the default.
+ // Values direct from images may be invalid, in which case we use the
+ // default.
if (exifValue < OriginTopLeft || exifValue > OriginLeftBottom)
return DefaultImageOrientation;
return static_cast<ImageOrientationEnum>(exifValue);
}
- // This transform can be used for drawing an image according to the orientation.
- // It should be used in a right-handed coordinate system.
+ // This transform can be used for drawing an image according to the
+ // orientation. It should be used in a right-handed coordinate system.
AffineTransform transformFromDefault(const FloatSize& drawnSize) const;
inline bool operator==(const ImageOrientation& other) const {

Powered by Google App Engine
This is Rietveld 408576698