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

Unified Diff: Source/core/layout/LayoutVTTCue.h

Issue 1240433007: Separate VTTCue from VTTCueBox and LayoutVTTCue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/layout/LayoutVTTCue.h
diff --git a/Source/core/layout/LayoutVTTCue.h b/Source/core/layout/LayoutVTTCue.h
index b3236d8aeb690a986926123ca179c482429c1459..e512d264f9816283afcb343f5def8bb548a5f1c2 100644
--- a/Source/core/layout/LayoutVTTCue.h
+++ b/Source/core/layout/LayoutVTTCue.h
@@ -31,12 +31,15 @@
namespace blink {
-class VTTCue;
class VTTCueBox;
class LayoutVTTCue final : public LayoutBlockFlow {
public:
- explicit LayoutVTTCue(VTTCueBox*);
+ explicit LayoutVTTCue(ContainerNode*, float snapToLinesPosition);
sof 2015/07/20 08:15:39 nit: can drop explicit now.
philipj_slow 2015/07/20 08:34:16 Done, and also added explicit to the VTTCueBox con
+
+ // The computed line position for snap-to-lines layout, and NaN for
+ // non-snap-to-lines layout where no adjustment should take place.
+ float snapToLinesPosition() { return m_snapToLinesPosition; }
fs 2015/07/17 14:31:48 Any particular reason for not doing something like
philipj_slow 2015/07/20 07:33:30 Precisely, an isVTTCueBox would require an extra v
private:
void layout() override;
@@ -44,9 +47,7 @@ private:
void adjustForTopAndBottomMarginBorderAndPadding();
void repositionCueSnapToLinesNotSet();
- // VTTCue is kept alive by VTTCueBox.
- GC_PLUGIN_IGNORE("http://crbug.com/509911")
- VTTCue* m_cue;
+ float m_snapToLinesPosition;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698