| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1206 const AtomicString& TextTrackCue::interfaceName() const | 1206 const AtomicString& TextTrackCue::interfaceName() const |
| 1207 { | 1207 { |
| 1208 return eventNames().interfaceForTextTrackCue; | 1208 return eventNames().interfaceForTextTrackCue; |
| 1209 } | 1209 } |
| 1210 | 1210 |
| 1211 ScriptExecutionContext* TextTrackCue::scriptExecutionContext() const | 1211 ScriptExecutionContext* TextTrackCue::scriptExecutionContext() const |
| 1212 { | 1212 { |
| 1213 return m_scriptExecutionContext; | 1213 return m_scriptExecutionContext; |
| 1214 } | 1214 } |
| 1215 | 1215 |
| 1216 EventTargetData* TextTrackCue::eventTargetData() | |
| 1217 { | |
| 1218 return &m_eventTargetData; | |
| 1219 } | |
| 1220 | |
| 1221 EventTargetData* TextTrackCue::ensureEventTargetData() | |
| 1222 { | |
| 1223 return &m_eventTargetData; | |
| 1224 } | |
| 1225 | |
| 1226 bool TextTrackCue::operator==(const TextTrackCue& cue) const | 1216 bool TextTrackCue::operator==(const TextTrackCue& cue) const |
| 1227 { | 1217 { |
| 1228 if (cueType() != cue.cueType()) | 1218 if (cueType() != cue.cueType()) |
| 1229 return false; | 1219 return false; |
| 1230 | 1220 |
| 1231 if (m_endTime != cue.endTime()) | 1221 if (m_endTime != cue.endTime()) |
| 1232 return false; | 1222 return false; |
| 1233 if (m_startTime != cue.startTime()) | 1223 if (m_startTime != cue.startTime()) |
| 1234 return false; | 1224 return false; |
| 1235 if (m_content != cue.text()) | 1225 if (m_content != cue.text()) |
| 1236 return false; | 1226 return false; |
| 1237 if (m_settings != cue.cueSettings()) | 1227 if (m_settings != cue.cueSettings()) |
| 1238 return false; | 1228 return false; |
| 1239 if (m_id != cue.id()) | 1229 if (m_id != cue.id()) |
| 1240 return false; | 1230 return false; |
| 1241 if (m_textPosition != cue.position()) | 1231 if (m_textPosition != cue.position()) |
| 1242 return false; | 1232 return false; |
| 1243 if (m_linePosition != cue.line()) | 1233 if (m_linePosition != cue.line()) |
| 1244 return false; | 1234 return false; |
| 1245 if (m_cueSize != cue.size()) | 1235 if (m_cueSize != cue.size()) |
| 1246 return false; | 1236 return false; |
| 1247 if (align() != cue.align()) | 1237 if (align() != cue.align()) |
| 1248 return false; | 1238 return false; |
| 1249 | 1239 |
| 1250 return true; | 1240 return true; |
| 1251 } | 1241 } |
| 1252 | 1242 |
| 1253 } // namespace WebCore | 1243 } // namespace WebCore |
| OLD | NEW |