OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "core/html/HTMLTrackElement.h" | 27 #include "core/html/HTMLTrackElement.h" |
28 | 28 |
29 #include "HTMLNames.h" | 29 #include "HTMLNames.h" |
30 #include "bindings/v8/ExceptionStatePlaceholder.h" | 30 #include "bindings/v8/ExceptionStatePlaceholder.h" |
31 #include "core/events/Event.h" | 31 #include "core/events/Event.h" |
32 #include "core/html/HTMLMediaElement.h" | 32 #include "core/html/HTMLMediaElement.h" |
33 #include "core/page/ContentSecurityPolicy.h" | 33 #include "core/page/ContentSecurityPolicy.h" |
34 #include "RuntimeEnabledFeatures.h" | 34 #include "RuntimeEnabledFeatures.h" |
35 #include "core/platform/Logging.h" | 35 #include "platform/Logging.h" |
36 | 36 |
37 using namespace std; | 37 using namespace std; |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 using namespace HTMLNames; | 41 using namespace HTMLNames; |
42 | 42 |
43 #if !LOG_DISABLED | 43 #if !LOG_DISABLED |
44 static String urlForLoggingTrack(const KURL& url) | 44 static String urlForLoggingTrack(const KURL& url) |
45 { | 45 { |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 HTMLMediaElement* HTMLTrackElement::mediaElement() const | 357 HTMLMediaElement* HTMLTrackElement::mediaElement() const |
358 { | 358 { |
359 Element* parent = parentElement(); | 359 Element* parent = parentElement(); |
360 if (parent && parent->isMediaElement()) | 360 if (parent && parent->isMediaElement()) |
361 return toHTMLMediaElement(parentNode()); | 361 return toHTMLMediaElement(parentNode()); |
362 return 0; | 362 return 0; |
363 } | 363 } |
364 | 364 |
365 } | 365 } |
366 | 366 |
OLD | NEW |