Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: Source/core/html/HTMLCanvasElement.cpp

Issue 336293002: Oilpan: Trace DocumentVisibilityObserver::m_document. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698