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

Side by Side Diff: Source/core/rendering/RenderVTTCue.h

Issue 806483002: Oilpan: trace RenderVTTCue's cue back reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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/rendering/RenderVTTCue.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) 2012 Victor Carbune (victor@rosedu.org) 2 * Copyright (C) 2012 Victor Carbune (victor@rosedu.org)
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef RenderVTTCue_h 26 #ifndef RenderVTTCue_h
27 #define RenderVTTCue_h 27 #define RenderVTTCue_h
28 28
29 #include "core/rendering/RenderBlockFlow.h" 29 #include "core/rendering/RenderBlockFlow.h"
30 #include "core/rendering/RenderInline.h" 30 #include "core/rendering/RenderInline.h"
31 #include "platform/geometry/FloatPoint.h" 31 #include "platform/geometry/FloatPoint.h"
32 #include "platform/heap/Handle.h"
32 33
33 namespace blink { 34 namespace blink {
34 35
35 class VTTCue; 36 class VTTCue;
36 class VTTCueBox; 37 class VTTCueBox;
37 38
38 class RenderVTTCue final : public RenderBlockFlow { 39 class RenderVTTCue final : public RenderBlockFlow {
39 public: 40 public:
40 explicit RenderVTTCue(VTTCueBox*); 41 explicit RenderVTTCue(VTTCueBox*);
41 42
43 virtual void trace(Visitor*) override;
42 private: 44 private:
43 virtual void layout() override; 45 virtual void layout() override;
44 46
45 bool isOutside() const; 47 bool isOutside() const;
46 bool isOverlapping() const; 48 bool isOverlapping() const;
47 bool shouldSwitchDirection(InlineFlowBox*, LayoutUnit) const; 49 bool shouldSwitchDirection(InlineFlowBox*, LayoutUnit) const;
48 50
49 void moveBoxesByStep(LayoutUnit); 51 void moveBoxesByStep(LayoutUnit);
50 bool switchDirection(bool&, LayoutUnit&); 52 bool switchDirection(bool&, LayoutUnit&);
51 53
52 bool findFirstLineBox(InlineFlowBox*&); 54 bool findFirstLineBox(InlineFlowBox*&);
53 bool initializeLayoutParameters(InlineFlowBox*, LayoutUnit&, LayoutUnit&); 55 bool initializeLayoutParameters(InlineFlowBox*, LayoutUnit&, LayoutUnit&);
54 void placeBoxInDefaultPosition(LayoutUnit, bool&); 56 void placeBoxInDefaultPosition(LayoutUnit, bool&);
55 void repositionCueSnapToLinesSet(); 57 void repositionCueSnapToLinesSet();
56 void repositionCueSnapToLinesNotSet(); 58 void repositionCueSnapToLinesNotSet();
57 59
58 VTTCue* m_cue; 60 RawPtrWillBeMember<VTTCue> m_cue;
59 FloatPoint m_fallbackPosition; 61 FloatPoint m_fallbackPosition;
60 }; 62 };
61 63
62 } // namespace blink 64 } // namespace blink
63 65
64 #endif // RenderVTTCue_h 66 #endif // RenderVTTCue_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderVTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698