OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 bool originClean() const { return m_originClean; } | 116 bool originClean() const { return m_originClean; } |
117 | 117 |
118 AffineTransform baseTransform() const; | 118 AffineTransform baseTransform() const; |
119 | 119 |
120 bool is3D() const; | 120 bool is3D() const; |
121 | 121 |
122 bool hasImageBuffer() const { return m_imageBuffer.get(); } | 122 bool hasImageBuffer() const { return m_imageBuffer.get(); } |
123 | 123 |
124 bool shouldAccelerate(const IntSize&) const; | 124 bool shouldAccelerate(const IntSize&) const; |
125 | 125 |
126 InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 126 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
127 | 127 |
128 private: | 128 private: |
129 explicit HTMLCanvasElement(Document&); | 129 explicit HTMLCanvasElement(Document&); |
130 | 130 |
131 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 131 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
132 virtual RenderObject* createRenderer(RenderStyle*); | 132 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
133 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } | 133 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } |
134 | 134 |
135 void reset(); | 135 void reset(); |
136 | 136 |
137 PassOwnPtr<ImageBufferSurface> createImageBufferSurface(const IntSize& devic
eSize, int* msaaSampleCount); | 137 PassOwnPtr<ImageBufferSurface> createImageBufferSurface(const IntSize& devic
eSize, int* msaaSampleCount); |
138 void createImageBuffer(); | 138 void createImageBuffer(); |
139 void clearImageBuffer(); | 139 void clearImageBuffer(); |
140 | 140 |
141 void setSurfaceSize(const IntSize&); | 141 void setSurfaceSize(const IntSize&); |
142 | 142 |
(...skipping 26 matching lines...) Expand all Loading... |
169 | 169 |
170 mutable RefPtr<Image> m_presentedImage; | 170 mutable RefPtr<Image> m_presentedImage; |
171 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). | 171 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). |
172 }; | 172 }; |
173 | 173 |
174 DEFINE_NODE_TYPE_CASTS(HTMLCanvasElement, hasTagName(HTMLNames::canvasTag)); | 174 DEFINE_NODE_TYPE_CASTS(HTMLCanvasElement, hasTagName(HTMLNames::canvasTag)); |
175 | 175 |
176 } //namespace | 176 } //namespace |
177 | 177 |
178 #endif | 178 #endif |
OLD | NEW |