| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 class FontMetrics; | 55 class FontMetrics; |
| 56 class HitRegion; | 56 class HitRegion; |
| 57 class HitRegionOptions; | 57 class HitRegionOptions; |
| 58 class HitRegionManager; | 58 class HitRegionManager; |
| 59 class Path2D; | 59 class Path2D; |
| 60 class SVGMatrixTearOff; | 60 class SVGMatrixTearOff; |
| 61 class TextMetrics; | 61 class TextMetrics; |
| 62 | 62 |
| 63 typedef HTMLImageElementOrHTMLVideoElementOrHTMLCanvasElementOrImageBitmap Canva
sImageSourceUnion; | 63 typedef HTMLImageElementOrHTMLVideoElementOrHTMLCanvasElementOrImageBitmap Canva
sImageSourceUnion; |
| 64 | 64 |
| 65 class MODULES_EXPORT CanvasRenderingContext2D final : public CanvasRenderingCont
ext, public BaseRenderingContext2D, public WebThread::TaskObserver, public SVGRe
sourceClient { | 65 class MODULES_EXPORT CanvasRenderingContext2D final : public CanvasRenderingCont
ext, public BaseRenderingContext2D, public WebThread::TaskObserver, public SVGRe
sourceClient, public ScriptWrappable { |
| 66 DEFINE_WRAPPERTYPEINFO(); | 66 DEFINE_WRAPPERTYPEINFO(); |
| 67 USING_GARBAGE_COLLECTED_MIXIN(CanvasRenderingContext2D); | 67 USING_GARBAGE_COLLECTED_MIXIN(CanvasRenderingContext2D); |
| 68 USING_PRE_FINALIZER(CanvasRenderingContext2D, dispose); | 68 USING_PRE_FINALIZER(CanvasRenderingContext2D, dispose); |
| 69 public: | 69 public: |
| 70 class Factory : public CanvasRenderingContextFactory { | 70 class Factory : public CanvasRenderingContextFactory { |
| 71 WTF_MAKE_NONCOPYABLE(Factory); | 71 WTF_MAKE_NONCOPYABLE(Factory); |
| 72 public: | 72 public: |
| 73 Factory() {} | 73 Factory() {} |
| 74 ~Factory() override {} | 74 ~Factory() override {} |
| 75 | 75 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; | 219 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; |
| 220 bool m_pruneLocalFontCacheScheduled; | 220 bool m_pruneLocalFontCacheScheduled; |
| 221 ListHashSet<String> m_fontLRUList; | 221 ListHashSet<String> m_fontLRUList; |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 224 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 225 | 225 |
| 226 } // namespace blink | 226 } // namespace blink |
| 227 | 227 |
| 228 #endif // CanvasRenderingContext2D_h | 228 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |