Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: Source/core/html/track/WebVTTElement.h

Issue 20123003: [oilpan] The Node hierarchy should have correct accept method chains (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698