Index: Source/core/html/track/vtt/VTTCue.cpp |
diff --git a/Source/core/html/track/vtt/VTTCue.cpp b/Source/core/html/track/vtt/VTTCue.cpp |
index e96b84963494dc62e91620fc17cdfe3ace7e9f28..1715d96c85f71ccb74f8e5fe7f1279726fcc5e45 100644 |
--- a/Source/core/html/track/vtt/VTTCue.cpp |
+++ b/Source/core/html/track/vtt/VTTCue.cpp |
@@ -664,14 +664,13 @@ void VTTCue::calculateDisplayParameters() |
// 10.9 Determine the value of whichever of x-position or y-position is not |
// yet calculated for cue as per the appropriate rules from the following |
// list: |
- if (m_snapToLines && m_displayPosition.second == undefinedPosition && m_writingDirection == Horizontal) |
+ if (m_snapToLines && m_writingDirection == Horizontal) |
m_displayPosition.second = 0; |
- if (!m_snapToLines && m_displayPosition.second == undefinedPosition && m_writingDirection == Horizontal) |
+ if (!m_snapToLines && m_writingDirection == Horizontal) |
m_displayPosition.second = m_computedLinePosition; |
- if (m_snapToLines && m_displayPosition.first == undefinedPosition |
- && (m_writingDirection == VerticalGrowingLeft || m_writingDirection == VerticalGrowingRight)) |
+ if (m_snapToLines && (m_writingDirection == VerticalGrowingLeft || m_writingDirection == VerticalGrowingRight)) |
m_displayPosition.first = 0; |
if (!m_snapToLines && (m_writingDirection == VerticalGrowingLeft || m_writingDirection == VerticalGrowingRight)) |