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