| 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 break; | 486 break; |
| 487 } | 487 } |
| 488 } | 488 } |
| 489 } | 489 } |
| 490 | 490 |
| 491 bool HTMLMediaElement::rendererIsNeeded(const NodeRenderingContext& context) | 491 bool HTMLMediaElement::rendererIsNeeded(const NodeRenderingContext& context) |
| 492 { | 492 { |
| 493 return controls() ? HTMLElement::rendererIsNeeded(context) : false; | 493 return controls() ? HTMLElement::rendererIsNeeded(context) : false; |
| 494 } | 494 } |
| 495 | 495 |
| 496 RenderObject* HTMLMediaElement::createRenderer(RenderArena* arena, RenderStyle*) | 496 RenderObject* HTMLMediaElement::createRenderer(RenderStyle*) |
| 497 { | 497 { |
| 498 return new (arena) RenderMedia(this); | 498 return new RenderMedia(this); |
| 499 } | 499 } |
| 500 | 500 |
| 501 bool HTMLMediaElement::childShouldCreateRenderer(const NodeRenderingContext& chi
ldContext) const | 501 bool HTMLMediaElement::childShouldCreateRenderer(const NodeRenderingContext& chi
ldContext) const |
| 502 { | 502 { |
| 503 if (!hasMediaControls()) | 503 if (!hasMediaControls()) |
| 504 return false; | 504 return false; |
| 505 // <media> doesn't allow its content, including shadow subtree, to | 505 // <media> doesn't allow its content, including shadow subtree, to |
| 506 // be rendered. So this should return false for most of the children. | 506 // be rendered. So this should return false for most of the children. |
| 507 // One exception is a shadow tree built for rendering controls which should
be visible. | 507 // One exception is a shadow tree built for rendering controls which should
be visible. |
| 508 // So we let them go here by comparing its subtree root with one of the cont
rols. | 508 // So we let them go here by comparing its subtree root with one of the cont
rols. |
| (...skipping 3462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3971 info.addMember(m_mediaGroup, "mediaGroup"); | 3971 info.addMember(m_mediaGroup, "mediaGroup"); |
| 3972 info.addMember(m_mediaController, "mediaController"); | 3972 info.addMember(m_mediaController, "mediaController"); |
| 3973 | 3973 |
| 3974 #if ENABLE(WEB_AUDIO) | 3974 #if ENABLE(WEB_AUDIO) |
| 3975 info.addMember(m_audioSourceNode, "audioSourceNode"); | 3975 info.addMember(m_audioSourceNode, "audioSourceNode"); |
| 3976 #endif | 3976 #endif |
| 3977 | 3977 |
| 3978 } | 3978 } |
| 3979 | 3979 |
| 3980 } | 3980 } |
| OLD | NEW |