| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 return; | 785 return; |
| 786 m_videoDisplaySize = videoBox; | 786 m_videoDisplaySize = videoBox; |
| 787 | 787 |
| 788 float smallestDimension = std::min(m_videoDisplaySize.size().height(), m_vid
eoDisplaySize.size().width()); | 788 float smallestDimension = std::min(m_videoDisplaySize.size().height(), m_vid
eoDisplaySize.size().width()); |
| 789 | 789 |
| 790 float fontSize = smallestDimension * 0.05f; | 790 float fontSize = smallestDimension * 0.05f; |
| 791 if (fontSize != m_fontSize) { | 791 if (fontSize != m_fontSize) { |
| 792 m_fontSize = fontSize; | 792 m_fontSize = fontSize; |
| 793 setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue:
:CSS_PX); | 793 setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue:
:CSS_PX); |
| 794 } | 794 } |
| 795 | |
| 796 CueList activeCues = mediaElement->currentlyActiveCues(); | |
| 797 for (size_t i = 0; i < activeCues.size(); ++i) { | |
| 798 TextTrackCue* cue = activeCues[i].data(); | |
| 799 cue->videoSizeDidChange(m_videoDisplaySize.size()); | |
| 800 } | |
| 801 } | 795 } |
| 802 | 796 |
| 803 // ---------------------------- | 797 // ---------------------------- |
| 804 | 798 |
| 805 } // namespace WebCore | 799 } // namespace WebCore |
| OLD | NEW |