2009-10-07 Adam Barth <abarth@webkit.org>
[WebKit-https.git] / WebKit / haiku / WebCoreSupport / FrameLoaderClientHaiku.cpp
index d2683c0..a8ba16f 100644 (file)
@@ -280,7 +280,7 @@ void FrameLoaderClientHaiku::dispatchWillSubmitForm(FramePolicyFunction function
     // FIXME: Send an event to allow for alerts and cancellation.
     if (!m_frame)
         return;
-    (m_frame->loader()->*function)(PolicyUse);
+    (m_frame->loader()->policyChecker()->*function)(PolicyUse);
 }
 
 void FrameLoaderClientHaiku::dispatchDidLoadMainResource(DocumentLoader*)
@@ -635,7 +635,7 @@ void FrameLoaderClientHaiku::dispatchDecidePolicyForMIMEType(FramePolicyFunction
         return;
 
     notImplemented();
-    (m_frame->loader()->*function)(PolicyUse);
+    (m_frame->loader()->policyChecker()->*function)(PolicyUse);
 }
 
 void FrameLoaderClientHaiku::dispatchDecidePolicyForNewWindowAction(FramePolicyFunction function,
@@ -650,12 +650,12 @@ void FrameLoaderClientHaiku::dispatchDecidePolicyForNewWindowAction(FramePolicyF
         BMessage message(NEW_WINDOW_REQUESTED);
         message.AddString("url", request.url().string());
         if (m_messenger->SendMessage(&message)) {
-            (m_frame->loader()->*function)(PolicyIgnore);
+            (m_frame->loader()->policyChecker()->*function)(PolicyIgnore);
             return;
         }
     }
 
-    (m_frame->loader()->*function)(PolicyUse);
+    (m_frame->loader()->policyChecker()->*function)(PolicyUse);
 }
 
 void FrameLoaderClientHaiku::dispatchDecidePolicyForNavigationAction(FramePolicyFunction function,
@@ -671,7 +671,7 @@ void FrameLoaderClientHaiku::dispatchDecidePolicyForNavigationAction(FramePolicy
         message.AddString("url", request.url().string());
         m_messenger->SendMessage(&message);
 
-        (m_frame->loader()->*function)(PolicyUse);
+        (m_frame->loader()->policyChecker()->*function)(PolicyUse);
     }
 }