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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 class ExceptionState; | 56 class ExceptionState; |
57 class FloatRect; | 57 class FloatRect; |
58 class GraphicsContext; | 58 class GraphicsContext; |
59 class HTMLCanvasElement; | 59 class HTMLCanvasElement; |
60 class HTMLImageElement; | 60 class HTMLImageElement; |
61 class HTMLVideoElement; | 61 class HTMLVideoElement; |
62 class ImageBitmap; | 62 class ImageBitmap; |
63 class ImageData; | 63 class ImageData; |
64 class TextMetrics; | 64 class TextMetrics; |
65 | 65 |
66 typedef HashMap<String, RefPtr<MutableStylePropertySet> > MutableStylePropertyMa
p; | 66 typedef WillBePersistentHeapHashMap<String, RefPtrWillBeMember<MutableStylePrope
rtySet> > MutableStylePropertyMap; |
67 | 67 |
68 class CanvasRenderingContext2D FINAL: public ScriptWrappable, public CanvasRende
ringContext, public CanvasPathMethods { | 68 class CanvasRenderingContext2D FINAL: public ScriptWrappable, public CanvasRende
ringContext, public CanvasPathMethods { |
69 public: | 69 public: |
70 static PassOwnPtr<CanvasRenderingContext2D> create(HTMLCanvasElement* canvas
, const Canvas2DContextAttributes* attrs, bool usesCSSCompatibilityParseMode) | 70 static PassOwnPtr<CanvasRenderingContext2D> create(HTMLCanvasElement* canvas
, const Canvas2DContextAttributes* attrs, bool usesCSSCompatibilityParseMode) |
71 { | 71 { |
72 return adoptPtr(new CanvasRenderingContext2D(canvas, attrs, usesCSSCompa
tibilityParseMode)); | 72 return adoptPtr(new CanvasRenderingContext2D(canvas, attrs, usesCSSCompa
tibilityParseMode)); |
73 } | 73 } |
74 virtual ~CanvasRenderingContext2D(); | 74 virtual ~CanvasRenderingContext2D(); |
75 | 75 |
76 CanvasStyle* strokeStyle() const; | 76 CanvasStyle* strokeStyle() const; |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 bool m_usesCSSCompatibilityParseMode; | 336 bool m_usesCSSCompatibilityParseMode; |
337 bool m_hasAlpha; | 337 bool m_hasAlpha; |
338 MutableStylePropertyMap m_fetchedFonts; | 338 MutableStylePropertyMap m_fetchedFonts; |
339 }; | 339 }; |
340 | 340 |
341 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 341 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
342 | 342 |
343 } // namespace WebCore | 343 } // namespace WebCore |
344 | 344 |
345 #endif | 345 #endif |
OLD | NEW |