Chromium Code Reviews| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 205 protected: | 205 protected: |
| 206 void didMoveToNewDocument(Document& oldDocument) override; | 206 void didMoveToNewDocument(Document& oldDocument) override; |
| 207 | 207 |
| 208 private: | 208 private: |
| 209 explicit HTMLCanvasElement(Document&); | 209 explicit HTMLCanvasElement(Document&); |
| 210 | 210 |
| 211 using ContextFactoryVector = Vector<OwnPtr<CanvasRenderingContextFactory>>; | 211 using ContextFactoryVector = Vector<OwnPtr<CanvasRenderingContextFactory>>; |
| 212 static ContextFactoryVector& renderingContextFactories(); | 212 static ContextFactoryVector& renderingContextFactories(); |
| 213 static CanvasRenderingContextFactory* getRenderingContextFactory(int); | 213 static CanvasRenderingContextFactory* getRenderingContextFactory(int); |
| 214 | 214 |
| 215 bool canStartSelection() const override { return false; } | |
|
yosin_UTC9
2016/06/21 08:09:32
HTMLCanvasElement::canStartSelection() should retu
aelias_OOO_until_Jul13
2016/06/21 22:07:50
OK, I removed the canvas part of this patch -- it
| |
| 216 | |
| 215 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override; | 217 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override; |
| 216 LayoutObject* createLayoutObject(const ComputedStyle&) override; | 218 LayoutObject* createLayoutObject(const ComputedStyle&) override; |
| 217 bool areAuthorShadowsAllowed() const override { return false; } | 219 bool areAuthorShadowsAllowed() const override { return false; } |
| 218 | 220 |
| 219 void reset(); | 221 void reset(); |
| 220 | 222 |
| 221 PassOwnPtr<ImageBufferSurface> createImageBufferSurface(const IntSize& devic eSize, int* msaaSampleCount); | 223 PassOwnPtr<ImageBufferSurface> createImageBufferSurface(const IntSize& devic eSize, int* msaaSampleCount); |
| 222 void createImageBuffer(); | 224 void createImageBuffer(); |
| 223 void createImageBufferInternal(PassOwnPtr<ImageBufferSurface> externalSurfac e); | 225 void createImageBufferInternal(PassOwnPtr<ImageBufferSurface> externalSurfac e); |
| 224 bool shouldUseDisplayList(const IntSize& deviceSize); | 226 bool shouldUseDisplayList(const IntSize& deviceSize); |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 252 | 254 |
| 253 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue). | 255 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue). |
| 254 | 256 |
| 255 // Used for OffscreenCanvas that controls this HTML canvas element | 257 // Used for OffscreenCanvas that controls this HTML canvas element |
| 256 OwnPtr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; | 258 OwnPtr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; |
| 257 }; | 259 }; |
| 258 | 260 |
| 259 } // namespace blink | 261 } // namespace blink |
| 260 | 262 |
| 261 #endif // HTMLCanvasElement_h | 263 #endif // HTMLCanvasElement_h |
| OLD | NEW |