Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: Source/core/html/track/TextTrackContainer.h

Issue 994063003: Move TextTrackContainer::updateSizes to the layout-side (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/html/track/TextTrackContainer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 23 matching lines...) Expand all
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class HTMLMediaElement; 37 class HTMLMediaElement;
38 38
39 class TextTrackContainer final : public HTMLDivElement { 39 class TextTrackContainer final : public HTMLDivElement {
40 public: 40 public:
41 static PassRefPtrWillBeRawPtr<TextTrackContainer> create(Document&); 41 static PassRefPtrWillBeRawPtr<TextTrackContainer> create(Document&);
42 42
43 void updateDisplay(HTMLMediaElement&); 43 void updateDisplay(HTMLMediaElement&);
44 void updateSizes(LayoutObject*);
45 44
46 private: 45 private:
47 TextTrackContainer(Document&); 46 TextTrackContainer(Document&);
48 47
49 virtual bool isTextTrackContainer() const override { return true; } 48 virtual bool isTextTrackContainer() const override { return true; }
50 49
51 virtual LayoutObject* createLayoutObject(const LayoutStyle&) override; 50 virtual LayoutObject* createLayoutObject(const LayoutStyle&) override;
52
53 IntSize m_videoSize;
54 float m_fontSize;
55 }; 51 };
56 52
57 DEFINE_ELEMENT_TYPE_CASTS(TextTrackContainer, isTextTrackContainer()); 53 DEFINE_ELEMENT_TYPE_CASTS(TextTrackContainer, isTextTrackContainer());
58 54
59 } // namespace blink 55 } // namespace blink
60 56
61 #endif // TextTrackContainer_h 57 #endif // TextTrackContainer_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/track/TextTrackContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698