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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/ImageOrientation.cpp

Issue 2807923002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/graphics (Closed)
Patch Set: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/graphics Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 1
2 /* 2 /*
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 return AffineTransform(1, 0, 0, -1, 0, h); 46 return AffineTransform(1, 0, 0, -1, 0, h);
47 case OriginLeftTop: 47 case OriginLeftTop:
48 return AffineTransform(0, 1, 1, 0, 0, 0); 48 return AffineTransform(0, 1, 1, 0, 0, 0);
49 case OriginRightTop: 49 case OriginRightTop:
50 return AffineTransform(0, 1, -1, 0, w, 0); 50 return AffineTransform(0, 1, -1, 0, w, 0);
51 case OriginRightBottom: 51 case OriginRightBottom:
52 return AffineTransform(0, -1, -1, 0, w, h); 52 return AffineTransform(0, -1, -1, 0, w, h);
53 case OriginLeftBottom: 53 case OriginLeftBottom:
54 return AffineTransform(0, -1, 1, 0, 0, h); 54 return AffineTransform(0, -1, 1, 0, 0, h);
55 default: 55 default:
56 ASSERT_NOT_REACHED(); 56 NOTREACHED();
57 } 57 }
58 58
59 ASSERT_NOT_REACHED(); 59 NOTREACHED();
60 return AffineTransform(); 60 return AffineTransform();
61 } 61 }
62 62
63 } // namespace blink 63 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698