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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 // 1. If the media element is an audio element, or is another playback | 597 // 1. If the media element is an audio element, or is another playback |
598 // mechanism with no rendering area, abort these steps. There is nothing to | 598 // mechanism with no rendering area, abort these steps. There is nothing to |
599 // render. | 599 // render. |
600 if (isHTMLAudioElement(mediaElement())) | 600 if (isHTMLAudioElement(mediaElement())) |
601 return; | 601 return; |
602 | 602 |
603 // 2. Let video be the media element or other playback mechanism. | 603 // 2. Let video be the media element or other playback mechanism. |
604 HTMLVideoElement& video = toHTMLVideoElement(mediaElement()); | 604 HTMLVideoElement& video = toHTMLVideoElement(mediaElement()); |
605 | 605 |
606 // 3. Let output be an empty list of absolutely positioned CSS block boxes. | 606 // 3. Let output be an empty list of absolutely positioned CSS block boxes. |
607 Vector<RefPtr<HTMLDivElement> > output; | |
608 | 607 |
609 // 4. If the user agent is exposing a user interface for video, add to | 608 // 4. If the user agent is exposing a user interface for video, add to |
610 // output one or more completely transparent positioned CSS block boxes that | 609 // output one or more completely transparent positioned CSS block boxes that |
611 // cover the same region as the user interface. | 610 // cover the same region as the user interface. |
612 | 611 |
613 // 5. If the last time these rules were run, the user agent was not exposing | 612 // 5. If the last time these rules were run, the user agent was not exposing |
614 // a user interface for video, but now it is, let reset be true. Otherwise, | 613 // a user interface for video, but now it is, let reset be true. Otherwise, |
615 // let reset be false. | 614 // let reset be false. |
616 | 615 |
617 // There is nothing to be done explicitly for 4th and 5th steps, as | 616 // There is nothing to be done explicitly for 4th and 5th steps, as |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 float fontSize = smallestDimension * 0.05f; | 674 float fontSize = smallestDimension * 0.05f; |
676 if (fontSize != m_fontSize) { | 675 if (fontSize != m_fontSize) { |
677 m_fontSize = fontSize; | 676 m_fontSize = fontSize; |
678 setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue:
:CSS_PX); | 677 setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue:
:CSS_PX); |
679 } | 678 } |
680 } | 679 } |
681 | 680 |
682 // ---------------------------- | 681 // ---------------------------- |
683 | 682 |
684 } // namespace WebCore | 683 } // namespace WebCore |
OLD | NEW |