OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "GraphicsContext.h" | 27 #include "GraphicsContext.h" |
28 | 28 |
29 #if USE(CG) | 29 #if USE(CG) |
30 #include "GraphicsContextPlatformPrivateCG.h" | 30 #include "GraphicsContextPlatformPrivateCG.h" |
31 #elif USE(CAIRO) | |
32 #include "GraphicsContextPlatformPrivateCairo.h" | |
33 #endif | 31 #endif |
34 | 32 |
35 #include "AffineTransform.h" | 33 #include "AffineTransform.h" |
36 #include "BitmapInfo.h" | 34 #include "BitmapInfo.h" |
37 #include "TransformationMatrix.h" | 35 #include "TransformationMatrix.h" |
38 #include "NotImplemented.h" | 36 #include "NotImplemented.h" |
39 #include "Path.h" | 37 #include "Path.h" |
40 #include <wtf/MathExtras.h> | 38 #include <wtf/MathExtras.h> |
41 | 39 |
42 using namespace std; | 40 using namespace std; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 { | 199 { |
202 if (!m_hdc) | 200 if (!m_hdc) |
203 return; | 201 return; |
204 | 202 |
205 XFORM xform = transform.toTransformationMatrix(); | 203 XFORM xform = transform.toTransformationMatrix(); |
206 SetWorldTransform(m_hdc, &xform); | 204 SetWorldTransform(m_hdc, &xform); |
207 } | 205 } |
208 #endif | 206 #endif |
209 | 207 |
210 } | 208 } |
OLD | NEW |