| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 fprintf(stderr, "%d: %d\n", i, s_nodeCount[i]); | 585 fprintf(stderr, "%d: %d\n", i, s_nodeCount[i]); |
| 586 | 586 |
| 587 fprintf(stderr, "===========================\n\n\n"); | 587 fprintf(stderr, "===========================\n\n\n"); |
| 588 } | 588 } |
| 589 | 589 |
| 590 #endif // DEBUG_AUDIONODE_REFERENCES | 590 #endif // DEBUG_AUDIONODE_REFERENCES |
| 591 | 591 |
| 592 void AudioNode::trace(Visitor* visitor) | 592 void AudioNode::trace(Visitor* visitor) |
| 593 { | 593 { |
| 594 visitor->trace(m_context); | 594 visitor->trace(m_context); |
| 595 EventTargetWithInlineData::trace(visitor); |
| 595 } | 596 } |
| 596 | 597 |
| 597 #if ENABLE(OILPAN) | 598 #if ENABLE(OILPAN) |
| 598 void AudioNode::clearKeepAlive() | 599 void AudioNode::clearKeepAlive() |
| 599 { | 600 { |
| 600 // It is safe to drop the self-persistent when the ref count | 601 // It is safe to drop the self-persistent when the ref count |
| 601 // of a AudioNode reaches zero. At that point, the | 602 // of a AudioNode reaches zero. At that point, the |
| 602 // AudioNode node is removed from the AudioContext and | 603 // AudioNode node is removed from the AudioContext and |
| 603 // it cannot be reattached. Therefore, the reference count | 604 // it cannot be reattached. Therefore, the reference count |
| 604 // will not go above zero again. | 605 // will not go above zero again. |
| 605 ASSERT(m_keepAlive); | 606 ASSERT(m_keepAlive); |
| 606 m_keepAlive = nullptr; | 607 m_keepAlive = nullptr; |
| 607 } | 608 } |
| 608 #endif | 609 #endif |
| 609 | 610 |
| 610 } // namespace WebCore | 611 } // namespace WebCore |
| 611 | 612 |
| 612 #endif // ENABLE(WEB_AUDIO) | 613 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |