| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 } | 173 } |
| 174 | 174 |
| 175 const AtomicString& TextTrackCueBox::textTrackCueBoxShadowPseudoId() | 175 const AtomicString& TextTrackCueBox::textTrackCueBoxShadowPseudoId() |
| 176 { | 176 { |
| 177 DEFINE_STATIC_LOCAL(const AtomicString, trackDisplayBoxShadowPseudoId, ("-we
bkit-media-text-track-display", AtomicString::ConstructFromLiteral)); | 177 DEFINE_STATIC_LOCAL(const AtomicString, trackDisplayBoxShadowPseudoId, ("-we
bkit-media-text-track-display", AtomicString::ConstructFromLiteral)); |
| 178 return trackDisplayBoxShadowPseudoId; | 178 return trackDisplayBoxShadowPseudoId; |
| 179 } | 179 } |
| 180 | 180 |
| 181 RenderObject* TextTrackCueBox::createRenderer(RenderStyle*) | 181 RenderObject* TextTrackCueBox::createRenderer(RenderStyle*) |
| 182 { | 182 { |
| 183 return new (document()->renderArena()) RenderTextTrackCue(this); | 183 return new RenderTextTrackCue(this); |
| 184 } | 184 } |
| 185 | 185 |
| 186 // ---------------------------- | 186 // ---------------------------- |
| 187 | 187 |
| 188 TextTrackCue::TextTrackCue(ScriptExecutionContext* context, double start, double
end, const String& content) | 188 TextTrackCue::TextTrackCue(ScriptExecutionContext* context, double start, double
end, const String& content) |
| 189 : m_startTime(start) | 189 : m_startTime(start) |
| 190 , m_endTime(end) | 190 , m_endTime(end) |
| 191 , m_content(content) | 191 , m_content(content) |
| 192 , m_linePosition(undefinedPosition) | 192 , m_linePosition(undefinedPosition) |
| 193 , m_computedLinePosition(undefinedPosition) | 193 , m_computedLinePosition(undefinedPosition) |
| (...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1181 return false; | 1181 return false; |
| 1182 if (m_cueSize != cue.size()) | 1182 if (m_cueSize != cue.size()) |
| 1183 return false; | 1183 return false; |
| 1184 if (align() != cue.align()) | 1184 if (align() != cue.align()) |
| 1185 return false; | 1185 return false; |
| 1186 | 1186 |
| 1187 return true; | 1187 return true; |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 } // namespace WebCore | 1190 } // namespace WebCore |
| OLD | NEW |