<?xml version="1.0"?>
<paste-with-annotations>
  <paste>
    <number>
      <integer>82947</integer>
    </number>
    <user>
      <string>icefox</string>
    </user>
    <title>
      <string>untitled</string>
    </title>
    <contents>
      <string>From fef4835bc58a39e69b9762dddcf0dfc7201ba8af Mon Sep 17 00:00:00 2001
From: Benjamin C Meyer &lt;benjamin.meyer@torchmobile.com&gt;
Date: Tue, 3 Mar 2009 10:45:08 -0500
Subject: [PATCH] Add new action to qwebpage to reload without cache.

---
 WebKit/qt/Api/qwebpage.cpp |   10 +++++++++-
 WebKit/qt/Api/qwebpage.h   |    1 +
 WebKit/qt/ChangeLog        |   12 ++++++++++++
 3 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/WebKit/qt/Api/qwebpage.cpp b/WebKit/qt/Api/qwebpage.cpp
index 376b03b..cc66bef 100644
--- a/WebKit/qt/Api/qwebpage.cpp
+++ b/WebKit/qt/Api/qwebpage.cpp
@@ -182,6 +182,7 @@ static const char* editorCommandWebActions[] =
     &quot;InsertLineBreak&quot;, // InsertLineSeparator
 
     &quot;SelectAll&quot;, // SelectAll
+    0, // ReloadAndBypassCache,
 
     &quot;PasteAndMatchStyle&quot;, // PasteAndMatchStyle
     &quot;RemoveFormat&quot;, // RemoveFormat
@@ -460,6 +461,7 @@ void QWebPagePrivate::updateAction(QWebPage::WebAction action)
             enabled = loader-&gt;isLoading();
             break;
         case QWebPage::Reload:
+        case QWebPage::ReloadAndBypassCache:
             enabled = !loader-&gt;isLoading();
             break;
 #ifndef QT_NO_UNDOSTACK
@@ -505,6 +507,7 @@ void QWebPagePrivate::updateNavigationActions()
     updateAction(QWebPage::Forward);
     updateAction(QWebPage::Stop);
     updateAction(QWebPage::Reload);
+    updateAction(QWebPage::ReloadAndBypassCache);
 }
 
 void QWebPagePrivate::updateEditorActions()
@@ -1149,6 +1152,8 @@ QVariant QWebPage::inputMethodQuery(Qt::InputMethodQuery property) const
     \value Forward Navigate forward in the history of navigated links.
     \value Stop Stop loading the current page.
     \value Reload Reload the current page.
+    \value ReloadAndBypassCache Reload the current page, but do not use any local cache.
+        \since 4.6
     \value Cut Cut the content currently selected into the clipboard.
     \value Copy Copy the content currently selected into the clipboard.
     \value Paste Paste content from the clipboard.
@@ -1551,7 +1556,10 @@ void QWebPage::triggerAction(WebAction action, bool checked)
             mainFrame()-&gt;d-&gt;frame-&gt;loader()-&gt;stopForUserCancel();
             break;
         case Reload:
-            mainFrame()-&gt;d-&gt;frame-&gt;loader()-&gt;reload();
+            mainFrame()-&gt;d-&gt;frame-&gt;loader()-&gt;reload(/*endtoendreload*/false);
+            break;
+        case ReloadAndBypassCache:
+            mainFrame()-&gt;d-&gt;frame-&gt;loader()-&gt;reload(/*endtoendreload*/true);
             break;
         case SetTextDirectionDefault:
             editor-&gt;setBaseWritingDirection(NaturalWritingDirection);
diff --git a/WebKit/qt/Api/qwebpage.h b/WebKit/qt/Api/qwebpage.h
index a481f36..a6eb5f4 100644
--- a/WebKit/qt/Api/qwebpage.h
+++ b/WebKit/qt/Api/qwebpage.h
@@ -149,6 +149,7 @@ public:
         InsertLineSeparator,
 
         SelectAll,
+        ReloadAndBypassCache,
 
         PasteAndMatchStyle,
         RemoveFormat,
diff --git a/WebKit/qt/ChangeLog b/WebKit/qt/ChangeLog
index 8c5c618..a08d7ec 100644
--- a/WebKit/qt/ChangeLog
+++ b/WebKit/qt/ChangeLog
@@ -1,3 +1,15 @@
+2009-07-03  Benjamin C Meyer  &lt;benjamin.meyer@torchmobile.com&gt;
+
+        Reviewed by NOBODY (OOPS!).
+
+        Add new action to qwebpage to reload without cache.
+
+        * Api/qwebpage.cpp:
+        (QWebPagePrivate::updateAction):
+        (QWebPagePrivate::updateNavigationActions):
+        (QWebPage::triggerAction):
+        * Api/qwebpage.h:
+
 2009-07-02  Simon Hausmann  &lt;simon.hausmann@nokia.com&gt;
 
         Reviewed by Ariya Hidayat.
-- 
1.6.0.4

</string>
    </contents>
    <universal-time>
      <integer>3455612489</integer>
    </universal-time>
    <channel>
      <string>None</string>
    </channel>
    <colorization-mode>
      <string>None</string>
    </colorization-mode>
    <maybe-spam>
      <null/>
    </maybe-spam>
    <is-unicode>
      <keyword>TRUE</keyword>
    </is-unicode>
    <deletion-requested>
      <null/>
    </deletion-requested>
    <deletion-requested-email>
      <null/>
    </deletion-requested-email>
    <expiration-time>
      <null/>
    </expiration-time>
  </paste>
</paste-with-annotations>
