| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 | 756 |
| 757 if (child->isWebVTTElement()) { | 757 if (child->isWebVTTElement()) { |
| 758 toWebVTTElement(child)->setIsPastNode(isPastNode); | 758 toWebVTTElement(child)->setIsPastNode(isPastNode); |
| 759 // Make an elemenet id match a cue id for style matching purposes. | 759 // Make an elemenet id match a cue id for style matching purposes. |
| 760 if (!m_id.isEmpty()) | 760 if (!m_id.isEmpty()) |
| 761 toElement(child)->setIdAttribute(AtomicString(m_id.characters(),
m_id.length())); | 761 toElement(child)->setIdAttribute(AtomicString(m_id.characters(),
m_id.length())); |
| 762 } | 762 } |
| 763 } | 763 } |
| 764 } | 764 } |
| 765 | 765 |
| 766 void TextTrackCue::updateDisplayTree(float movieTime) | 766 void TextTrackCue::updateDisplayTree(double movieTime) |
| 767 { | 767 { |
| 768 // The display tree may contain WebVTT timestamp objects representing | 768 // The display tree may contain WebVTT timestamp objects representing |
| 769 // timestamps (processing instructions), along with displayable nodes. | 769 // timestamps (processing instructions), along with displayable nodes. |
| 770 | 770 |
| 771 if (!track()->isRendered()) | 771 if (!track()->isRendered()) |
| 772 return; | 772 return; |
| 773 | 773 |
| 774 // Clear the contents of the set. | 774 // Clear the contents of the set. |
| 775 m_cueBackgroundBox->removeChildren(); | 775 m_cueBackgroundBox->removeChildren(); |
| 776 | 776 |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1175 return false; | 1175 return false; |
| 1176 if (align() != cue.align()) | 1176 if (align() != cue.align()) |
| 1177 return false; | 1177 return false; |
| 1178 | 1178 |
| 1179 return true; | 1179 return true; |
| 1180 } | 1180 } |
| 1181 | 1181 |
| 1182 } // namespace WebCore | 1182 } // namespace WebCore |
| 1183 | 1183 |
| 1184 #endif | 1184 #endif |
| OLD | NEW |