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. | 3 * Copyright (C) 2012 Google Inc. |
4 * All rights reserved. | 4 * All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
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 11 matching lines...) Expand all Loading... |
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #ifndef LayoutTextTrackContainer_h | 28 #ifndef LayoutTextTrackContainer_h |
29 #define LayoutTextTrackContainer_h | 29 #define LayoutTextTrackContainer_h |
30 | 30 |
31 #include "core/layout/LayoutBlockFlow.h" | 31 #include "core/layout/LayoutBlockFlow.h" |
| 32 #include "platform/geometry/IntSize.h" |
32 | 33 |
33 namespace blink { | 34 namespace blink { |
34 | 35 |
35 class Element; | 36 class Element; |
| 37 class LayoutVideo; |
36 | 38 |
37 class LayoutTextTrackContainer final : public LayoutBlockFlow { | 39 class LayoutTextTrackContainer final : public LayoutBlockFlow { |
38 public: | 40 public: |
39 LayoutTextTrackContainer(Element*); | 41 LayoutTextTrackContainer(Element*); |
40 | 42 |
41 private: | 43 private: |
42 virtual void layout() override; | 44 virtual void layout() override; |
| 45 |
| 46 bool updateSizes(const LayoutVideo&); |
| 47 |
| 48 IntSize m_videoSize; |
| 49 float m_fontSize; |
43 }; | 50 }; |
44 | 51 |
45 } // namespace blink | 52 } // namespace blink |
46 | 53 |
47 #endif // LayoutTextTrackContainer_h | 54 #endif // LayoutTextTrackContainer_h |
OLD | NEW |