unsigned short PerformanceNavigation::type() const { if (!m_frame) return TYPE_NAVIGATE; DocumentLoader* documentLoader = m_frame->loader().documentLoader(); if (!documentLoader) return TYPE_NAVIGATE; switch (documentLoader->navigationType()) { case NavigationTypeReload: return TYPE_RELOAD; case NavigationTypeBackForward: return TYPE_BACK_FORWARD; default: return TYPE_NAVIGATE; } }