| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 void loseContext(LostContextMode) override; | 218 void loseContext(LostContextMode) override; |
| 219 void didSetSurfaceSize() override; | 219 void didSetSurfaceSize() override; |
| 220 | 220 |
| 221 void restoreCanvasMatrixClipStack(SkCanvas*) const override; | 221 void restoreCanvasMatrixClipStack(SkCanvas*) const override; |
| 222 | 222 |
| 223 // TaskObserver implementation | 223 // TaskObserver implementation |
| 224 void didProcessTask() override; | 224 void didProcessTask() override; |
| 225 void willProcessTask() override { } | 225 void willProcessTask() override { } |
| 226 | 226 |
| 227 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS
tyle) override; | 227 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS
tyle) override; |
| 228 Node* getControlAndUpdateEvent(Event&) override; |
| 228 | 229 |
| 229 private: | 230 private: |
| 230 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; | 231 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; |
| 231 | 232 |
| 232 CanvasRenderingContext2D(HTMLCanvasElement*, const CanvasContextCreationAttr
ibutes& attrs, Document&); | 233 CanvasRenderingContext2D(HTMLCanvasElement*, const CanvasContextCreationAttr
ibutes& attrs, Document&); |
| 233 | 234 |
| 234 CanvasRenderingContext2DState& modifiableState(); | 235 CanvasRenderingContext2DState& modifiableState(); |
| 235 const CanvasRenderingContext2DState& state() const { return *m_stateStack.la
st(); } | 236 const CanvasRenderingContext2DState& state() const { return *m_stateStack.la
st(); } |
| 236 | 237 |
| 237 void setShadow(const FloatSize& offset, double blur, RGBA32 color); | 238 void setShadow(const FloatSize& offset, double blur, RGBA32 color); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; | 319 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; |
| 319 bool m_pruneLocalFontCacheScheduled; | 320 bool m_pruneLocalFontCacheScheduled; |
| 320 ListHashSet<String> m_fontLRUList; | 321 ListHashSet<String> m_fontLRUList; |
| 321 }; | 322 }; |
| 322 | 323 |
| 323 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 324 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 324 | 325 |
| 325 } // namespace blink | 326 } // namespace blink |
| 326 | 327 |
| 327 #endif // CanvasRenderingContext2D_h | 328 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |