OLD | NEW |
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 Loading... |
46 case OriginBottomLeft: | 46 case OriginBottomLeft: |
47 return AffineTransform( 1, 0, 0, -1, 0, h); | 47 return AffineTransform( 1, 0, 0, -1, 0, h); |
48 case OriginLeftTop: | 48 case OriginLeftTop: |
49 return AffineTransform( 0, 1, 1, 0, 0, 0); | 49 return AffineTransform( 0, 1, 1, 0, 0, 0); |
50 case OriginRightTop: | 50 case OriginRightTop: |
51 return AffineTransform( 0, 1, -1, 0, w, 0); | 51 return AffineTransform( 0, 1, -1, 0, w, 0); |
52 case OriginRightBottom: | 52 case OriginRightBottom: |
53 return AffineTransform( 0, -1, -1, 0, w, h); | 53 return AffineTransform( 0, -1, -1, 0, w, h); |
54 case OriginLeftBottom: | 54 case OriginLeftBottom: |
55 return AffineTransform( 0, -1, 1, 0, 0, h); | 55 return AffineTransform( 0, -1, 1, 0, 0, h); |
| 56 default: |
| 57 ASSERT_NOT_REACHED(); |
56 } | 58 } |
57 | 59 |
58 ASSERT_NOT_REACHED(); | 60 ASSERT_NOT_REACHED(); |
59 return AffineTransform(); | 61 return AffineTransform(); |
60 } | 62 } |
61 | 63 |
62 } // namespace blink | 64 } // namespace blink |
OLD | NEW |