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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 | 584 |
585 if (Traversal<HTMLTrackElement>::firstChild(*this)) | 585 if (Traversal<HTMLTrackElement>::firstChild(*this)) |
586 scheduleDelayedAction(LoadTextTrackResource); | 586 scheduleDelayedAction(LoadTextTrackResource); |
587 } | 587 } |
588 | 588 |
589 bool HTMLMediaElement::rendererIsNeeded(const RenderStyle& style) | 589 bool HTMLMediaElement::rendererIsNeeded(const RenderStyle& style) |
590 { | 590 { |
591 return shouldShowControls() && HTMLElement::rendererIsNeeded(style); | 591 return shouldShowControls() && HTMLElement::rendererIsNeeded(style); |
592 } | 592 } |
593 | 593 |
594 RenderObject* HTMLMediaElement::createRenderer(const RenderStyle&) | 594 LayoutObject* HTMLMediaElement::createRenderer(const RenderStyle&) |
595 { | 595 { |
596 return new RenderMedia(this); | 596 return new RenderMedia(this); |
597 } | 597 } |
598 | 598 |
599 Node::InsertionNotificationRequest HTMLMediaElement::insertedInto(ContainerNode*
insertionPoint) | 599 Node::InsertionNotificationRequest HTMLMediaElement::insertedInto(ContainerNode*
insertionPoint) |
600 { | 600 { |
601 WTF_LOG(Media, "HTMLMediaElement::insertedInto(%p, %p)", this, insertionPoin
t); | 601 WTF_LOG(Media, "HTMLMediaElement::insertedInto(%p, %p)", this, insertionPoin
t); |
602 | 602 |
603 HTMLElement::insertedInto(insertionPoint); | 603 HTMLElement::insertedInto(insertionPoint); |
604 if (insertionPoint->inDocument()) { | 604 if (insertionPoint->inDocument()) { |
(...skipping 3506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4111 | 4111 |
4112 #if ENABLE(WEB_AUDIO) | 4112 #if ENABLE(WEB_AUDIO) |
4113 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) | 4113 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
4114 { | 4114 { |
4115 if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) | 4115 if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) |
4116 audioSourceProvider()->setClient(nullptr); | 4116 audioSourceProvider()->setClient(nullptr); |
4117 } | 4117 } |
4118 #endif | 4118 #endif |
4119 | 4119 |
4120 } | 4120 } |
OLD | NEW |