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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 virtual void trace(Visitor*) OVERRIDE; | 163 virtual void trace(Visitor*) OVERRIDE; |
164 | 164 |
165 protected: | 165 protected: |
166 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; | 166 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; |
167 | 167 |
168 private: | 168 private: |
169 explicit HTMLCanvasElement(Document&); | 169 explicit HTMLCanvasElement(Document&); |
170 | 170 |
171 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 171 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
172 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 172 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
| 173 virtual void didRecalcStyle(StyleRecalcChange) OVERRIDE; |
173 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } | 174 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } |
174 | 175 |
175 void reset(); | 176 void reset(); |
176 | 177 |
177 PassOwnPtr<ImageBufferSurface> createImageBufferSurface(const IntSize& devic
eSize, int* msaaSampleCount); | 178 PassOwnPtr<ImageBufferSurface> createImageBufferSurface(const IntSize& devic
eSize, int* msaaSampleCount); |
178 void createImageBuffer(); | 179 void createImageBuffer(); |
179 void createImageBufferInternal(); | 180 void createImageBufferInternal(); |
180 void clearImageBuffer(); | 181 void clearImageBuffer(); |
181 | 182 |
182 void resetDirtyRect(); | 183 void resetDirtyRect(); |
(...skipping 27 matching lines...) Expand all Loading... |
210 OwnPtr<ImageBuffer> m_imageBuffer; | 211 OwnPtr<ImageBuffer> m_imageBuffer; |
211 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; | 212 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; |
212 | 213 |
213 mutable RefPtr<Image> m_presentedImage; | 214 mutable RefPtr<Image> m_presentedImage; |
214 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). | 215 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). |
215 }; | 216 }; |
216 | 217 |
217 } // namespace blink | 218 } // namespace blink |
218 | 219 |
219 #endif // HTMLCanvasElement_h | 220 #endif // HTMLCanvasElement_h |
OLD | NEW |