diff options
Diffstat (limited to 'Source/WebCore/page/PerformanceNavigation.cpp')
| -rw-r--r-- | Source/WebCore/page/PerformanceNavigation.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/WebCore/page/PerformanceNavigation.cpp b/Source/WebCore/page/PerformanceNavigation.cpp index be472a05c..2cb3aefed 100644 --- a/Source/WebCore/page/PerformanceNavigation.cpp +++ b/Source/WebCore/page/PerformanceNavigation.cpp @@ -55,9 +55,9 @@ unsigned short PerformanceNavigation::type() const WebCore::NavigationType navigationType = documentLoader->triggeringAction().type(); switch (navigationType) { - case NavigationType::Reload: + case NavigationTypeReload: return TYPE_RELOAD; - case NavigationType::BackForward: + case NavigationTypeBackForward: return TYPE_BACK_FORWARD; default: return TYPE_NAVIGATE; @@ -73,11 +73,11 @@ unsigned short PerformanceNavigation::redirectCount() const if (!loader) return 0; - DocumentLoadTiming& timing = loader->timing(); - if (timing.hasCrossOriginRedirect()) + DocumentLoadTiming* timing = loader->timing(); + if (timing->hasCrossOriginRedirect()) return 0; - return timing.redirectCount(); + return timing->redirectCount(); } } // namespace WebCore |
