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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 void loseContext(LostContextMode) override; | 221 void loseContext(LostContextMode) override; |
222 void didSetSurfaceSize() override; | 222 void didSetSurfaceSize() override; |
223 | 223 |
224 void restoreCanvasMatrixClipStack(SkCanvas*) const override; | 224 void restoreCanvasMatrixClipStack(SkCanvas*) const override; |
225 | 225 |
226 // TaskObserver implementation | 226 // TaskObserver implementation |
227 void didProcessTask() override; | 227 void didProcessTask() override; |
228 void willProcessTask() override { } | 228 void willProcessTask() override { } |
229 | 229 |
230 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS
tyle) override; | 230 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS
tyle) override; |
| 231 std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoi
nt& location) override; |
231 | 232 |
232 // SVGResourceClient implementation | 233 // SVGResourceClient implementation |
233 void filterNeedsInvalidation() override; | 234 void filterNeedsInvalidation() override; |
234 | 235 |
235 private: | 236 private: |
236 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; | 237 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; |
237 | 238 |
238 CanvasRenderingContext2D(HTMLCanvasElement*, const CanvasContextCreationAttr
ibutes& attrs, Document&); | 239 CanvasRenderingContext2D(HTMLCanvasElement*, const CanvasContextCreationAttr
ibutes& attrs, Document&); |
239 | 240 |
240 void dispose(); | 241 void dispose(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; | 327 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; |
327 bool m_pruneLocalFontCacheScheduled; | 328 bool m_pruneLocalFontCacheScheduled; |
328 ListHashSet<String> m_fontLRUList; | 329 ListHashSet<String> m_fontLRUList; |
329 }; | 330 }; |
330 | 331 |
331 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 332 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
332 | 333 |
333 } // namespace blink | 334 } // namespace blink |
334 | 335 |
335 #endif // CanvasRenderingContext2D_h | 336 #endif // CanvasRenderingContext2D_h |
OLD | NEW |