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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 if (!RuntimeEnabledFeatures::webkitVideoTrackEnabled()) | 489 if (!RuntimeEnabledFeatures::webkitVideoTrackEnabled()) |
490 return; | 490 return; |
491 | 491 |
492 for (Node* node = firstChild(); node; node = node->nextSibling()) { | 492 for (Node* node = firstChild(); node; node = node->nextSibling()) { |
493 if (node->hasTagName(trackTag)) { | 493 if (node->hasTagName(trackTag)) { |
494 scheduleDelayedAction(LoadTextTrackResource); | 494 scheduleDelayedAction(LoadTextTrackResource); |
495 break; | 495 break; |
496 } | 496 } |
497 } | 497 } |
498 #endif | 498 #endif |
| 499 |
| 500 ScriptWrappable::init(this); |
499 } | 501 } |
500 | 502 |
501 bool HTMLMediaElement::rendererIsNeeded(const NodeRenderingContext& context) | 503 bool HTMLMediaElement::rendererIsNeeded(const NodeRenderingContext& context) |
502 { | 504 { |
503 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) | 505 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) |
504 UNUSED_PARAM(context); | 506 UNUSED_PARAM(context); |
505 Frame* frame = document()->frame(); | 507 Frame* frame = document()->frame(); |
506 if (!frame) | 508 if (!frame) |
507 return false; | 509 return false; |
508 | 510 |
(...skipping 4261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4770 info.addMember(m_sleepDisabler, "sleepDisabler"); | 4772 info.addMember(m_sleepDisabler, "sleepDisabler"); |
4771 #endif | 4773 #endif |
4772 #if ENABLE(WEB_AUDIO) | 4774 #if ENABLE(WEB_AUDIO) |
4773 info.addMember(m_audioSourceNode, "audioSourceNode"); | 4775 info.addMember(m_audioSourceNode, "audioSourceNode"); |
4774 #endif | 4776 #endif |
4775 | 4777 |
4776 } | 4778 } |
4777 | 4779 |
4778 } | 4780 } |
4779 #endif | 4781 #endif |
OLD | NEW |