Replace static_casts with to* functions for document types.
[WebKit-https.git] / Source / WebCore / loader / Prerenderer.cpp
index dd05e93..51ea25e 100644 (file)
@@ -130,7 +130,7 @@ void Prerenderer::resume()
 Document* Prerenderer::document()
 {
     ASSERT(scriptExecutionContext()->isDocument());
 Document* Prerenderer::document()
 {
     ASSERT(scriptExecutionContext()->isDocument());
-    return static_cast<Document*>(scriptExecutionContext());
+    return toDocument(scriptExecutionContext());
 }
 
 PrerendererClient* Prerenderer::client()
 }
 
 PrerendererClient* Prerenderer::client()
@@ -149,8 +149,8 @@ void Prerenderer::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
     MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM);
     ActiveDOMObject::reportMemoryUsage(memoryObjectInfo);
     info.ignoreMember(m_client);
     MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM);
     ActiveDOMObject::reportMemoryUsage(memoryObjectInfo);
     info.ignoreMember(m_client);
-    info.addMember(m_activeHandles);
-    info.addMember(m_suspendedHandles);
+    info.addMember(m_activeHandles, "activeHandles");
+    info.addMember(m_suspendedHandles, "suspendedHandles");
 }
 
 }
 }
 
 }