| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 void setGlobalAlpha(float); | 112 void setGlobalAlpha(float); |
| 113 | 113 |
| 114 bool isContextLost() const; | 114 bool isContextLost() const; |
| 115 | 115 |
| 116 bool shouldAntialias() const; | 116 bool shouldAntialias() const; |
| 117 void setShouldAntialias(bool); | 117 void setShouldAntialias(bool); |
| 118 | 118 |
| 119 String globalCompositeOperation() const; | 119 String globalCompositeOperation() const; |
| 120 void setGlobalCompositeOperation(const String&); | 120 void setGlobalCompositeOperation(const String&); |
| 121 | 121 |
| 122 String filter() const; |
| 123 void setFilter(const String&); |
| 124 |
| 122 void save(); | 125 void save(); |
| 123 void restore(); | 126 void restore(); |
| 124 | 127 |
| 125 PassRefPtrWillBeRawPtr<SVGMatrixTearOff> currentTransform() const; | 128 PassRefPtrWillBeRawPtr<SVGMatrixTearOff> currentTransform() const; |
| 126 void setCurrentTransform(PassRefPtrWillBeRawPtr<SVGMatrixTearOff>); | 129 void setCurrentTransform(PassRefPtrWillBeRawPtr<SVGMatrixTearOff>); |
| 127 | 130 |
| 128 void scale(float sx, float sy); | 131 void scale(float sx, float sy); |
| 129 void rotate(float angleInRadians); | 132 void rotate(float angleInRadians); |
| 130 void translate(float tx, float ty); | 133 void translate(float tx, float ty); |
| 131 void transform(float m11, float m12, float m21, float m22, float dx, float d
y); | 134 void transform(float m11, float m12, float m21, float m22, float dx, float d
y); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 259 |
| 257 const Font& accessFont(); | 260 const Font& accessFont(); |
| 258 int getFontBaseline(const FontMetrics&) const; | 261 int getFontBaseline(const FontMetrics&) const; |
| 259 | 262 |
| 260 void clearCanvas(); | 263 void clearCanvas(); |
| 261 bool rectContainsTransformedRect(const FloatRect&, const SkIRect&) const; | 264 bool rectContainsTransformedRect(const FloatRect&, const SkIRect&) const; |
| 262 | 265 |
| 263 void inflateStrokeRect(FloatRect&) const; | 266 void inflateStrokeRect(FloatRect&) const; |
| 264 | 267 |
| 265 template<typename DrawFunc> | 268 template<typename DrawFunc> |
| 266 void fullCanvasCompositedDraw(const DrawFunc&, CanvasRenderingContext2DState
::PaintType, CanvasRenderingContext2DState::ImageType); | 269 void compositedDraw(const DrawFunc&, CanvasRenderingContext2DState::PaintTyp
e, CanvasRenderingContext2DState::ImageType); |
| 267 | 270 |
| 268 void drawFocusIfNeededInternal(const Path&, Element*); | 271 void drawFocusIfNeededInternal(const Path&, Element*); |
| 269 bool focusRingCallIsValid(const Path&, Element*); | 272 bool focusRingCallIsValid(const Path&, Element*); |
| 270 void drawFocusRing(const Path&); | 273 void drawFocusRing(const Path&); |
| 271 void updateFocusRingElementAccessibility(const Path&, Element*); | 274 void updateFocusRingElementAccessibility(const Path&, Element*); |
| 272 | 275 |
| 273 void validateStateStack(); | 276 void validateStateStack(); |
| 274 | 277 |
| 275 enum DrawType { | 278 enum DrawType { |
| 276 ClipFill, // Fill that is already known to cover the current clip | 279 ClipFill, // Fill that is already known to cover the current clip |
| (...skipping 25 matching lines...) Expand all Loading... |
| 302 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 305 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
| 303 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 306 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
| 304 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 307 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
| 305 }; | 308 }; |
| 306 | 309 |
| 307 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 310 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 308 | 311 |
| 309 } // namespace blink | 312 } // namespace blink |
| 310 | 313 |
| 311 #endif // CanvasRenderingContext2D_h | 314 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |