| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 194 |
| 195 void notifyListenersCanvasChanged(); | 195 void notifyListenersCanvasChanged(); |
| 196 | 196 |
| 197 // For Canvas HitRegions | 197 // For Canvas HitRegions |
| 198 bool isSupportedInteractiveCanvasFallback(const Element&); | 198 bool isSupportedInteractiveCanvasFallback(const Element&); |
| 199 std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoi
nt&); | 199 std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoi
nt&); |
| 200 String getIdFromControl(const Element*); | 200 String getIdFromControl(const Element*); |
| 201 | 201 |
| 202 // For OffscreenCanvas that controls this html canvas element | 202 // For OffscreenCanvas that controls this html canvas element |
| 203 CanvasSurfaceLayerBridge* surfaceLayerBridge() const { return m_surfaceLayer
Bridge.get(); } | 203 CanvasSurfaceLayerBridge* surfaceLayerBridge() const { return m_surfaceLayer
Bridge.get(); } |
| 204 void createSurfaceLayerBridge(); | 204 bool createSurfaceLayer(); |
| 205 | 205 |
| 206 void detachContext() { m_context = nullptr; } | 206 void detachContext() { m_context = nullptr; } |
| 207 | 207 |
| 208 protected: | 208 protected: |
| 209 void didMoveToNewDocument(Document& oldDocument) override; | 209 void didMoveToNewDocument(Document& oldDocument) override; |
| 210 | 210 |
| 211 private: | 211 private: |
| 212 explicit HTMLCanvasElement(Document&); | 212 explicit HTMLCanvasElement(Document&); |
| 213 void dispose(); | 213 void dispose(); |
| 214 | 214 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). | 257 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor
ms that have to copy the image buffer to render (and for CSSCanvasValue). |
| 258 | 258 |
| 259 // Used for OffscreenCanvas that controls this HTML canvas element | 259 // Used for OffscreenCanvas that controls this HTML canvas element |
| 260 OwnPtr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; | 260 OwnPtr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; |
| 261 }; | 261 }; |
| 262 | 262 |
| 263 } // namespace blink | 263 } // namespace blink |
| 264 | 264 |
| 265 #endif // HTMLCanvasElement_h | 265 #endif // HTMLCanvasElement_h |
| OLD | NEW |