Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix conditions in HTMLSourceElement and HTMLTrackElement's insertedIn…
…to and removedFrom https://bugs.webkit.org/show_bug.cgi?id=178607 Reviewed by Eric Carlson. Fixed the conditions in insertedInto and removedFrom of HTMLSourceElement and HTMLTrackElement to be semantically sensisble. Since these elements are only functional when their immediate parents are HTMLMediaElement and HTMLPictureElement, we have to check that its immediate parent changed, not when some of its ancestor had changed by insertion or removal. * html/HTMLSourceElement.cpp: (WebCore::HTMLSourceElement::insertedInto): (WebCore::HTMLSourceElement::removedFrom): * html/HTMLTrackElement.cpp: (WebCore::HTMLTrackElement::insertedInto): (WebCore::HTMLTrackElement::removedFrom): Canonical link: https://commits.webkit.org/194803@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
32 additions
and 22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters