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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 LostContextMode m_contextLostMode; | 217 LostContextMode m_contextLostMode; |
218 bool m_contextRestorable; | 218 bool m_contextRestorable; |
219 unsigned m_tryRestoreContextAttemptCount; | 219 unsigned m_tryRestoreContextAttemptCount; |
220 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 220 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
221 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 221 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
222 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 222 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
223 | 223 |
224 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; | 224 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; |
225 bool m_pruneLocalFontCacheScheduled; | 225 bool m_pruneLocalFontCacheScheduled; |
226 ListHashSet<String> m_fontLRUList; | 226 ListHashSet<String> m_fontLRUList; |
| 227 |
| 228 bool isPaintable() const final |
| 229 { |
| 230 NOTREACHED(); |
| 231 return false; |
| 232 } |
227 }; | 233 }; |
228 | 234 |
229 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, | 235 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, |
230 context->is2d() && context->canvas(), context.is2d() && context.canvas()); | 236 context->is2d() && context->canvas(), context.is2d() && context.canvas()); |
231 | 237 |
232 } // namespace blink | 238 } // namespace blink |
233 | 239 |
234 #endif // CanvasRenderingContext2D_h | 240 #endif // CanvasRenderingContext2D_h |
OLD | NEW |