| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 String globalCompositeOperation() const; | 117 String globalCompositeOperation() const; |
| 118 void setGlobalCompositeOperation(const String&); | 118 void setGlobalCompositeOperation(const String&); |
| 119 | 119 |
| 120 void save() { ++m_stateStack.last()->m_unrealizedSaveCount; } | 120 void save() { ++m_stateStack.last()->m_unrealizedSaveCount; } |
| 121 void restore(); | 121 void restore(); |
| 122 | 122 |
| 123 PassRefPtr<SVGMatrixTearOff> currentTransform() const | 123 PassRefPtr<SVGMatrixTearOff> currentTransform() const |
| 124 { | 124 { |
| 125 return SVGMatrixTearOff::create(state().m_transform); | 125 return SVGMatrixTearOff::create(state().m_transform); |
| 126 } | 126 } |
| 127 void setCurrentTransform(PassRefPtr<SVGMatrixTearOff>, ExceptionState&); | 127 void setCurrentTransform(PassRefPtr<SVGMatrixTearOff>); |
| 128 | 128 |
| 129 void scale(float sx, float sy); | 129 void scale(float sx, float sy); |
| 130 void rotate(float angleInRadians); | 130 void rotate(float angleInRadians); |
| 131 void translate(float tx, float ty); | 131 void translate(float tx, float ty); |
| 132 void transform(float m11, float m12, float m21, float m22, float dx, float d
y); | 132 void transform(float m11, float m12, float m21, float m22, float dx, float d
y); |
| 133 void setTransform(float m11, float m12, float m21, float m22, float dx, floa
t dy); | 133 void setTransform(float m11, float m12, float m21, float m22, float dx, floa
t dy); |
| 134 void resetTransform(); | 134 void resetTransform(); |
| 135 | 135 |
| 136 void setStrokeColor(const String& color); | 136 void setStrokeColor(const String& color); |
| 137 void setStrokeColor(float grayLevel); | 137 void setStrokeColor(float grayLevel); |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 356 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
| 357 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 357 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
| 358 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 358 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
| 359 }; | 359 }; |
| 360 | 360 |
| 361 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 361 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 362 | 362 |
| 363 } // namespace WebCore | 363 } // namespace WebCore |
| 364 | 364 |
| 365 #endif | 365 #endif |
| OLD | NEW |