| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
| 4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 // ---------- End transformation methods ----------------- | 391 // ---------- End transformation methods ----------------- |
| 392 | 392 |
| 393 // URL drawing | 393 // URL drawing |
| 394 void setURLForRect(const KURL&, const IntRect&); | 394 void setURLForRect(const KURL&, const IntRect&); |
| 395 void setURLFragmentForRect(const String& name, const IntRect&); | 395 void setURLFragmentForRect(const String& name, const IntRect&); |
| 396 void addURLTargetAtPoint(const String& name, const IntPoint&); | 396 void addURLTargetAtPoint(const String& name, const IntPoint&); |
| 397 bool supportsURLFragments() { return printing(); } | 397 bool supportsURLFragments() { return printing(); } |
| 398 | 398 |
| 399 // Create an image buffer compatible with this context, with suitable resolu
tion | 399 // Create an image buffer compatible with this context, with suitable resolu
tion |
| 400 // for drawing into the buffer and then into this context. | 400 // for drawing into the buffer and then into this context. |
| 401 PassOwnPtr<ImageBuffer> createCompatibleBuffer(const IntSize&, OpacityMode =
NonOpaque) const; | 401 PassOwnPtr<ImageBuffer> createRasterBuffer(const IntSize&, OpacityMode = Non
Opaque) const; |
| 402 | 402 |
| 403 static void adjustLineToPixelBoundaries(FloatPoint& p1, FloatPoint& p2, floa
t strokeWidth, StrokeStyle); | 403 static void adjustLineToPixelBoundaries(FloatPoint& p1, FloatPoint& p2, floa
t strokeWidth, StrokeStyle); |
| 404 | 404 |
| 405 void beginAnnotation(const AnnotationList&); | 405 void beginAnnotation(const AnnotationList&); |
| 406 void endAnnotation(); | 406 void endAnnotation(); |
| 407 | 407 |
| 408 private: | 408 private: |
| 409 const GraphicsContextState* immutableState() const { return m_paintState; } | 409 const GraphicsContextState* immutableState() const { return m_paintState; } |
| 410 | 410 |
| 411 GraphicsContextState* mutableState() | 411 GraphicsContextState* mutableState() |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 bool m_updatingControlTints : 1; | 523 bool m_updatingControlTints : 1; |
| 524 bool m_accelerated : 1; | 524 bool m_accelerated : 1; |
| 525 bool m_isCertainlyOpaque : 1; | 525 bool m_isCertainlyOpaque : 1; |
| 526 bool m_printing : 1; | 526 bool m_printing : 1; |
| 527 bool m_antialiasHairlineImages : 1; | 527 bool m_antialiasHairlineImages : 1; |
| 528 }; | 528 }; |
| 529 | 529 |
| 530 } // namespace WebCore | 530 } // namespace WebCore |
| 531 | 531 |
| 532 #endif // GraphicsContext_h | 532 #endif // GraphicsContext_h |
| OLD | NEW |