OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple 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 | 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 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 | 27 |
28 #include "core/html/track/TextTrackCueGeneric.h" | 28 #include "core/html/track/TextTrackCueGeneric.h" |
29 | 29 |
30 #include "CSSPropertyNames.h" | 30 #include "CSSPropertyNames.h" |
31 #include "CSSValueKeywords.h" | 31 #include "CSSValueKeywords.h" |
32 #include "HTMLNames.h" | |
33 #include "core/dom/ScriptExecutionContext.h" | |
34 #include "core/html/HTMLDivElement.h" | 32 #include "core/html/HTMLDivElement.h" |
35 #include "core/html/track/TextTrackCue.h" | 33 #include "core/html/track/TextTrackCue.h" |
36 #include "core/platform/graphics/InbandTextTrackPrivateClient.h" | |
37 #include "core/rendering/RenderObject.h" | |
38 #include "core/rendering/RenderTextTrackCue.h" | |
39 | 34 |
40 namespace WebCore { | 35 namespace WebCore { |
41 | 36 |
42 class TextTrackCueGenericBoxElement FINAL : public TextTrackCueBox { | 37 class TextTrackCueGenericBoxElement FINAL : public TextTrackCueBox { |
43 public: | 38 public: |
44 static PassRefPtr<TextTrackCueGenericBoxElement> create(Document* document,
TextTrackCueGeneric* cue) | 39 static PassRefPtr<TextTrackCueGenericBoxElement> create(Document* document,
TextTrackCueGeneric* cue) |
45 { | 40 { |
46 return adoptRef(new TextTrackCueGenericBoxElement(document, cue)); | 41 return adoptRef(new TextTrackCueGenericBoxElement(document, cue)); |
47 } | 42 } |
48 | 43 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 if (m_foregroundColor != other->foregroundColor()) | 158 if (m_foregroundColor != other->foregroundColor()) |
164 return false; | 159 return false; |
165 if (m_backgroundColor != other->backgroundColor()) | 160 if (m_backgroundColor != other->backgroundColor()) |
166 return false; | 161 return false; |
167 | 162 |
168 return TextTrackCue::operator==(cue); | 163 return TextTrackCue::operator==(cue); |
169 } | 164 } |
170 | 165 |
171 } // namespace WebCore | 166 } // namespace WebCore |
172 | 167 |
OLD | NEW |