diff options
Diffstat (limited to 'Source/WebCore/html/shadow')
| -rw-r--r-- | Source/WebCore/html/shadow/MediaControls.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/WebCore/html/shadow/MediaControls.h b/Source/WebCore/html/shadow/MediaControls.h index dc88ebb..edbbe21 100644 --- a/Source/WebCore/html/shadow/MediaControls.h +++ b/Source/WebCore/html/shadow/MediaControls.h @@ -73,8 +73,19 @@ protected: 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 |
