| 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 if (m_context && m_context->is2d()) { | 534 if (m_context && m_context->is2d()) { |
| 535 CanvasRenderingContext2D* context2d = toCanvasRenderingContext2D(m_conte
xt.get()); | 535 CanvasRenderingContext2D* context2d = toCanvasRenderingContext2D(m_conte
xt.get()); |
| 536 context2d->loseContext(); | 536 context2d->loseContext(); |
| 537 } | 537 } |
| 538 } | 538 } |
| 539 | 539 |
| 540 void HTMLCanvasElement::trace(Visitor* visitor) | 540 void HTMLCanvasElement::trace(Visitor* visitor) |
| 541 { | 541 { |
| 542 visitor->trace(m_observers); | 542 visitor->trace(m_observers); |
| 543 visitor->trace(m_context); | 543 visitor->trace(m_context); |
| 544 DocumentVisibilityObserver::trace(visitor); |
| 544 HTMLElement::trace(visitor); | 545 HTMLElement::trace(visitor); |
| 545 } | 546 } |
| 546 | 547 |
| 547 void HTMLCanvasElement::updateExternallyAllocatedMemory() const | 548 void HTMLCanvasElement::updateExternallyAllocatedMemory() const |
| 548 { | 549 { |
| 549 int bufferCount = 0; | 550 int bufferCount = 0; |
| 550 if (m_imageBuffer) | 551 if (m_imageBuffer) |
| 551 bufferCount++; | 552 bufferCount++; |
| 552 if (is3D()) | 553 if (is3D()) |
| 553 bufferCount += 2; | 554 bufferCount += 2; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 { | 702 { |
| 702 return !originClean(); | 703 return !originClean(); |
| 703 } | 704 } |
| 704 | 705 |
| 705 FloatSize HTMLCanvasElement::sourceSize() const | 706 FloatSize HTMLCanvasElement::sourceSize() const |
| 706 { | 707 { |
| 707 return FloatSize(width(), height()); | 708 return FloatSize(width(), height()); |
| 708 } | 709 } |
| 709 | 710 |
| 710 } | 711 } |
| OLD | NEW |