Index: Source/WebCore/html/shadow/MediaControls.h |
=================================================================== |
--- Source/WebCore/html/shadow/MediaControls.h (revision 87760) |
+++ Source/WebCore/html/shadow/MediaControls.h (working copy) |
@@ -73,10 +73,21 @@ |
private: |
MediaControls(); |
+ |
+ virtual bool isMediaControls() const { return true; } |
}; |
+inline MediaControls* toMediaControls(Node* node) |
+{ |
+ ASSERT(!node || node->isMediaControls()); |
+ return static_cast<MediaControls*>(node); |
} |
+// This will catch anyone doing an unneccessary cast. |
+void toMediaControls(const Node*); |
+ |
+} |
+ |
#endif |
#endif |