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