| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 DEFINE_STATIC_LOCAL(QualifiedName, voiceAttr, (nullAtom, "voice", nullAt
om)); | 62 DEFINE_STATIC_LOCAL(QualifiedName, voiceAttr, (nullAtom, "voice", nullAt
om)); |
| 63 return voiceAttr; | 63 return voiceAttr; |
| 64 } | 64 } |
| 65 | 65 |
| 66 static const QualifiedName& langAttributeName() | 66 static const QualifiedName& langAttributeName() |
| 67 { | 67 { |
| 68 DEFINE_STATIC_LOCAL(QualifiedName, voiceAttr, (nullAtom, "lang", nullAto
m)); | 68 DEFINE_STATIC_LOCAL(QualifiedName, voiceAttr, (nullAtom, "lang", nullAto
m)); |
| 69 return voiceAttr; | 69 return voiceAttr; |
| 70 } | 70 } |
| 71 | 71 |
| 72 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; |
| 73 |
| 72 private: | 74 private: |
| 73 WebVTTElement(const QualifiedName&, Handle<Document>); | 75 WebVTTElement(const QualifiedName&, Handle<Document>); |
| 74 WebVTTElement(WebVTTNodeType, Handle<Document>); | 76 WebVTTElement(WebVTTNodeType, Handle<Document>); |
| 75 | 77 |
| 76 unsigned m_isPastNode : 1; | 78 unsigned m_isPastNode : 1; |
| 77 unsigned m_webVTTNodeType : 4; | 79 unsigned m_webVTTNodeType : 4; |
| 78 | 80 |
| 79 AtomicString m_language; | 81 AtomicString m_language; |
| 80 }; | 82 }; |
| 81 | 83 |
| 82 inline WebVTTElement* toWebVTTElement(Node* node) | 84 inline WebVTTElement* toWebVTTElement(Node* node) |
| 83 { | 85 { |
| 84 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isWebVTTElement()); | 86 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isWebVTTElement()); |
| 85 return static_cast<WebVTTElement*>(node); | 87 return static_cast<WebVTTElement*>(node); |
| 86 } | 88 } |
| 87 | 89 |
| 88 // This will catch anyone doing an unnecessary cast. | 90 // This will catch anyone doing an unnecessary cast. |
| 89 void toWebVTTElement(const WebVTTElement*); | 91 void toWebVTTElement(const WebVTTElement*); |
| 90 | 92 |
| 91 | 93 |
| 92 } // namespace WebCore | 94 } // namespace WebCore |
| 93 | 95 |
| OLD | NEW |