OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 } | 311 } |
312 | 312 |
313 const AtomicString& VTTRegion::textTrackRegionShadowPseudoId() | 313 const AtomicString& VTTRegion::textTrackRegionShadowPseudoId() |
314 { | 314 { |
315 DEFINE_STATIC_LOCAL(const AtomicString, trackRegionShadowPseudoId, | 315 DEFINE_STATIC_LOCAL(const AtomicString, trackRegionShadowPseudoId, |
316 ("-webkit-media-text-track-region", AtomicString::ConstructFromLiteral))
; | 316 ("-webkit-media-text-track-region", AtomicString::ConstructFromLiteral))
; |
317 | 317 |
318 return trackRegionShadowPseudoId; | 318 return trackRegionShadowPseudoId; |
319 } | 319 } |
320 | 320 |
321 PassRefPtr<HTMLDivElement> VTTRegion::getDisplayTree(Document& document) | 321 PassRefPtrWillBeRawPtr<HTMLDivElement> VTTRegion::getDisplayTree(Document& docum
ent) |
322 { | 322 { |
323 if (!m_regionDisplayTree) { | 323 if (!m_regionDisplayTree) { |
324 m_regionDisplayTree = HTMLDivElement::create(document); | 324 m_regionDisplayTree = HTMLDivElement::create(document); |
325 prepareRegionDisplayTree(); | 325 prepareRegionDisplayTree(); |
326 } | 326 } |
327 | 327 |
328 return m_regionDisplayTree; | 328 return m_regionDisplayTree; |
329 } | 329 } |
330 | 330 |
331 void VTTRegion::willRemoveVTTCueBox(VTTCueBox* box) | 331 void VTTRegion::willRemoveVTTCueBox(VTTCueBox* box) |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 } | 468 } |
469 | 469 |
470 void VTTRegion::trace(Visitor* visitor) | 470 void VTTRegion::trace(Visitor* visitor) |
471 { | 471 { |
472 visitor->trace(m_cueContainer); | 472 visitor->trace(m_cueContainer); |
473 visitor->trace(m_regionDisplayTree); | 473 visitor->trace(m_regionDisplayTree); |
474 visitor->trace(m_track); | 474 visitor->trace(m_track); |
475 } | 475 } |
476 | 476 |
477 } // namespace WebCore | 477 } // namespace WebCore |
OLD | NEW |