Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 318ced439f0281f06f6538befdd02dd98b357892..c60c127ba818e3662408314ca74960da98dc05df 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -4982,7 +4982,7 @@ HTMLDialogElement* Document::activeModalDialog() const |
{ |
if (m_topLayerElements.isEmpty()) |
return 0; |
- return static_cast<HTMLDialogElement*>(m_topLayerElements.last().get()); |
+ return toHTMLDialogElement(m_topLayerElements.last().get()); |
} |
void Document::webkitExitPointerLock() |