| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. | 2 * Copyright (c) 2013, Opera Software ASA. 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 class Document; | 39 class Document; |
| 40 class ExecutionContext; | 40 class ExecutionContext; |
| 41 class VTTCue; | 41 class VTTCue; |
| 42 class VTTScanner; | 42 class VTTScanner; |
| 43 | 43 |
| 44 class VTTCueBox FINAL : public HTMLDivElement { | 44 class VTTCueBox FINAL : public HTMLDivElement { |
| 45 public: | 45 public: |
| 46 static PassRefPtrWillBeRawPtr<VTTCueBox> create(Document& document, VTTCue*
cue) | 46 static PassRefPtrWillBeRawPtr<VTTCueBox> create(Document& document, VTTCue*
cue) |
| 47 { | 47 { |
| 48 return adoptRefWillBeRefCountedGarbageCollected(new VTTCueBox(document,
cue)); | 48 return adoptRefWillBeNoop(new VTTCueBox(document, cue)); |
| 49 } | 49 } |
| 50 | 50 |
| 51 VTTCue* getCue() const { return m_cue; } | 51 VTTCue* getCue() const { return m_cue; } |
| 52 void applyCSSProperties(const IntSize& videoSize); | 52 void applyCSSProperties(const IntSize& videoSize); |
| 53 | 53 |
| 54 virtual void trace(Visitor*) OVERRIDE; | 54 virtual void trace(Visitor*) OVERRIDE; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 VTTCueBox(Document&, VTTCue*); | 57 VTTCueBox(Document&, VTTCue*); |
| 58 | 58 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 bool m_displayTreeShouldChange : 1; | 191 bool m_displayTreeShouldChange : 1; |
| 192 bool m_notifyRegion : 1; | 192 bool m_notifyRegion : 1; |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 // VTTCue is currently the only TextTrackCue subclass. | 195 // VTTCue is currently the only TextTrackCue subclass. |
| 196 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); | 196 DEFINE_TYPE_CASTS(VTTCue, TextTrackCue, cue, true, true); |
| 197 | 197 |
| 198 } // namespace WebCore | 198 } // namespace WebCore |
| 199 | 199 |
| 200 #endif | 200 #endif |
| OLD | NEW |