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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 void HTMLCanvasElement::notifySurfaceInvalid() | 522 void HTMLCanvasElement::notifySurfaceInvalid() |
523 { | 523 { |
524 if (m_context && m_context->is2d()) { | 524 if (m_context && m_context->is2d()) { |
525 CanvasRenderingContext2D* context2d = toCanvasRenderingContext2D(m_conte
xt.get()); | 525 CanvasRenderingContext2D* context2d = toCanvasRenderingContext2D(m_conte
xt.get()); |
526 context2d->loseContext(); | 526 context2d->loseContext(); |
527 } | 527 } |
528 } | 528 } |
529 | 529 |
530 void HTMLCanvasElement::trace(Visitor* visitor) | 530 void HTMLCanvasElement::trace(Visitor* visitor) |
531 { | 531 { |
| 532 #if ENABLE(OILPAN) |
532 visitor->trace(m_observers); | 533 visitor->trace(m_observers); |
533 visitor->trace(m_context); | 534 visitor->trace(m_context); |
| 535 #endif |
534 DocumentVisibilityObserver::trace(visitor); | 536 DocumentVisibilityObserver::trace(visitor); |
535 HTMLElement::trace(visitor); | 537 HTMLElement::trace(visitor); |
536 } | 538 } |
537 | 539 |
538 void HTMLCanvasElement::updateExternallyAllocatedMemory() const | 540 void HTMLCanvasElement::updateExternallyAllocatedMemory() const |
539 { | 541 { |
540 int bufferCount = 0; | 542 int bufferCount = 0; |
541 if (m_imageBuffer) | 543 if (m_imageBuffer) |
542 bufferCount++; | 544 bufferCount++; |
543 if (is3D()) | 545 if (is3D()) |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 { | 694 { |
693 return !originClean(); | 695 return !originClean(); |
694 } | 696 } |
695 | 697 |
696 FloatSize HTMLCanvasElement::sourceSize() const | 698 FloatSize HTMLCanvasElement::sourceSize() const |
697 { | 699 { |
698 return FloatSize(width(), height()); | 700 return FloatSize(width(), height()); |
699 } | 701 } |
700 | 702 |
701 } | 703 } |
OLD | NEW |