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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 1511523002: Align HTMLImageElement relevant mutations to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix removal issue when a text node is between <source> and <img> Created 5 years 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
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698