OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple 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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 } | 542 } |
543 | 543 |
544 return InsertionShouldCallDidNotifySubtreeInsertions; | 544 return InsertionShouldCallDidNotifySubtreeInsertions; |
545 } | 545 } |
546 | 546 |
547 void HTMLMediaElement::didNotifySubtreeInsertionsToDocument() | 547 void HTMLMediaElement::didNotifySubtreeInsertionsToDocument() |
548 { | 548 { |
549 configureMediaControls(); | 549 configureMediaControls(); |
550 } | 550 } |
551 | 551 |
552 void HTMLMediaElement::removedFrom(ContainerNode* insertionPoint) | 552 void HTMLMediaElement::removedFrom(ContainerNode* insertionPoint, Node* next) |
553 { | 553 { |
554 WTF_LOG(Media, "HTMLMediaElement::removedFrom(%p, %p)", this, insertionPoint
); | 554 WTF_LOG(Media, "HTMLMediaElement::removedFrom(%p, %p)", this, insertionPoint
); |
555 | 555 |
556 HTMLElement::removedFrom(insertionPoint); | 556 HTMLElement::removedFrom(insertionPoint, next); |
557 if (insertionPoint->inActiveDocument()) { | 557 if (insertionPoint->inActiveDocument()) { |
558 configureMediaControls(); | 558 configureMediaControls(); |
559 if (m_networkState > NETWORK_EMPTY) | 559 if (m_networkState > NETWORK_EMPTY) |
560 pause(); | 560 pause(); |
561 } | 561 } |
562 } | 562 } |
563 | 563 |
564 void HTMLMediaElement::attach(const AttachContext& context) | 564 void HTMLMediaElement::attach(const AttachContext& context) |
565 { | 565 { |
566 HTMLElement::attach(context); | 566 HTMLElement::attach(context); |
(...skipping 3065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3632 visitor->trace(m_client); | 3632 visitor->trace(m_client); |
3633 } | 3633 } |
3634 | 3634 |
3635 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) | 3635 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) |
3636 { | 3636 { |
3637 visitor->trace(m_client); | 3637 visitor->trace(m_client); |
3638 } | 3638 } |
3639 #endif | 3639 #endif |
3640 | 3640 |
3641 } | 3641 } |
OLD | NEW |