| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 : HTMLElement(tagName, document) | 75 : HTMLElement(tagName, document) |
| 76 , m_size(DefaultWidth, DefaultHeight) | 76 , m_size(DefaultWidth, DefaultHeight) |
| 77 , m_rendererIsCanvas(false) | 77 , m_rendererIsCanvas(false) |
| 78 , m_ignoreReset(false) | 78 , m_ignoreReset(false) |
| 79 , m_deviceScaleFactor(targetDeviceScaleFactor()) | 79 , m_deviceScaleFactor(targetDeviceScaleFactor()) |
| 80 , m_originClean(true) | 80 , m_originClean(true) |
| 81 , m_hasCreatedImageBuffer(false) | 81 , m_hasCreatedImageBuffer(false) |
| 82 , m_didClearImageBuffer(false) | 82 , m_didClearImageBuffer(false) |
| 83 { | 83 { |
| 84 ASSERT(hasTagName(canvasTag)); | 84 ASSERT(hasTagName(canvasTag)); |
| 85 ScriptWrappable::init(this); |
| 85 } | 86 } |
| 86 | 87 |
| 87 PassRefPtr<HTMLCanvasElement> HTMLCanvasElement::create(Document* document) | 88 PassRefPtr<HTMLCanvasElement> HTMLCanvasElement::create(Document* document) |
| 88 { | 89 { |
| 89 return adoptRef(new HTMLCanvasElement(canvasTag, document)); | 90 return adoptRef(new HTMLCanvasElement(canvasTag, document)); |
| 90 } | 91 } |
| 91 | 92 |
| 92 PassRefPtr<HTMLCanvasElement> HTMLCanvasElement::create(const QualifiedName& tag
Name, Document* document) | 93 PassRefPtr<HTMLCanvasElement> HTMLCanvasElement::create(const QualifiedName& tag
Name, Document* document) |
| 93 { | 94 { |
| 94 return adoptRef(new HTMLCanvasElement(tagName, document)); | 95 return adoptRef(new HTMLCanvasElement(tagName, document)); |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 HTMLElement::reportMemoryUsage(memoryObjectInfo); | 596 HTMLElement::reportMemoryUsage(memoryObjectInfo); |
| 596 info.addMember(m_observers, "observers"); | 597 info.addMember(m_observers, "observers"); |
| 597 info.addMember(m_context, "context"); | 598 info.addMember(m_context, "context"); |
| 598 info.addMember(m_imageBuffer, "imageBuffer"); | 599 info.addMember(m_imageBuffer, "imageBuffer"); |
| 599 info.addMember(m_contextStateSaver, "contextStateSaver"); | 600 info.addMember(m_contextStateSaver, "contextStateSaver"); |
| 600 info.addMember(m_presentedImage, "presentedImage"); | 601 info.addMember(m_presentedImage, "presentedImage"); |
| 601 info.addMember(m_copiedImage, "copiedImage"); | 602 info.addMember(m_copiedImage, "copiedImage"); |
| 602 } | 603 } |
| 603 | 604 |
| 604 } | 605 } |
| OLD | NEW |