summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframe_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webframe_impl.cc')
-rw-r--r--webkit/glue/webframe_impl.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
index c8627d1..8d08a5d 100644
--- a/webkit/glue/webframe_impl.cc
+++ b/webkit/glue/webframe_impl.cc
@@ -1736,3 +1736,12 @@ bool WebFrameImpl::HasUnloadListener() {
}
return false;
}
+
+bool WebFrameImpl::IsReloadAllowingStaleData() const {
+ FrameLoader* loader = frame() ? frame()->loader() : NULL;
+ if (loader) {
+ return WebCore::FrameLoadTypeReloadAllowingStaleData ==
+ loader->policyLoadType();
+ }
+ return false;
+}