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

Side by Side Diff: Source/core/layout/LayoutVTTCue.h

Issue 1314613002: Drop LayoutVTTCue::adjustForTopAndBottomMarginBorderAndPadding (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop seagulls. Created 5 years, 4 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/layout/LayoutVTTCue.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 26 matching lines...) Expand all
37 public: 37 public:
38 LayoutVTTCue(ContainerNode*, float snapToLinesPosition); 38 LayoutVTTCue(ContainerNode*, float snapToLinesPosition);
39 39
40 // The computed line position for snap-to-lines layout, and NaN for 40 // The computed line position for snap-to-lines layout, and NaN for
41 // non-snap-to-lines layout where no adjustment should take place. 41 // non-snap-to-lines layout where no adjustment should take place.
42 float snapToLinesPosition() { return m_snapToLinesPosition; } 42 float snapToLinesPosition() { return m_snapToLinesPosition; }
43 43
44 private: 44 private:
45 void layout() override; 45 void layout() override;
46 46
47 void adjustForTopAndBottomMarginBorderAndPadding();
48 void repositionCueSnapToLinesNotSet(); 47 void repositionCueSnapToLinesNotSet();
49 48
50 float m_snapToLinesPosition; 49 float m_snapToLinesPosition;
51 }; 50 };
52 51
53 } // namespace blink 52 } // namespace blink
54 53
55 #endif // LayoutVTTCue_h 54 #endif // LayoutVTTCue_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/LayoutVTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698