Index: Source/web/WebFrameImpl.h |
diff --git a/Source/web/WebFrameImpl.h b/Source/web/WebFrameImpl.h |
index b6e0b4193994e9e27f2f64b6fb4b05eb72fc664d..104f8497aa3281da92443b7c2d7f0a33399a3d2f 100644 |
--- a/Source/web/WebFrameImpl.h |
+++ b/Source/web/WebFrameImpl.h |
@@ -499,6 +499,19 @@ private: |
bool m_inSameDocumentHistoryLoad; |
}; |
+inline WebFrameImpl* toWebFrameImpl(WebFrame* webFrame) |
+{ |
+ return static_cast<WebFrameImpl*>(webFrame); |
+} |
+ |
+inline const WebFrameImpl* toWebFrameImpl(const WebFrame* webFrame) |
+{ |
+ return static_cast<const WebFrameImpl*>(webFrame); |
+} |
+ |
+// This will catch anyone doing an unnecessary cast. |
+void toWebFrameImpl(const WebFrameImpl*); |
+ |
} // namespace WebKit |
#endif |