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

Unified Diff: Source/core/html/track/TextTrackCue.cpp

Issue 74623002: Remove the logic for de-duplicating in-band text track cues (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WebVTTParser.cpp was moved Created 7 years, 1 month 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
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | Source/core/html/track/vtt/VTTParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TextTrackCue.cpp
diff --git a/Source/core/html/track/TextTrackCue.cpp b/Source/core/html/track/TextTrackCue.cpp
index 37222ac4da5b144c3dbcd7fea0ad36ead00ba633..dd53fc68ed1f4900f966f1dce916dde5d0917b66 100644
--- a/Source/core/html/track/TextTrackCue.cpp
+++ b/Source/core/html/track/TextTrackCue.cpp
@@ -942,9 +942,8 @@ TextTrackCue::CueSetting TextTrackCue::settingName(const String& name)
return None;
}
-void TextTrackCue::setCueSettings(const String& input)
+void TextTrackCue::parseSettings(const String& input)
{
- m_settings = input;
unsigned position = 0;
while (position < input.length()) {
@@ -1205,28 +1204,4 @@ Document& TextTrackCue::document() const
return m_cueBackgroundBox->document();
}
-bool TextTrackCue::operator==(const TextTrackCue& cue) const
-{
- if (m_endTime != cue.endTime())
- return false;
- if (m_startTime != cue.startTime())
- return false;
- if (m_content != cue.text())
- return false;
- if (m_settings != cue.cueSettings())
- return false;
- if (m_id != cue.id())
- return false;
- if (m_textPosition != cue.position())
- return false;
- if (m_linePosition != cue.line())
- return false;
- if (m_cueSize != cue.size())
- return false;
- if (align() != cue.align())
- return false;
-
- return true;
-}
-
} // namespace WebCore
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | Source/core/html/track/vtt/VTTParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698