Fix an enumeration name in ReasonsFrameCannotBeInPageCache.
authorgavinp@chromium.org <gavinp@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Mar 2012 14:57:53 +0000 (14:57 +0000)
committergavinp@chromium.org <gavinp@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Mar 2012 14:57:53 +0000 (14:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=80849

Reviewed by Brady Eidson.

It seems that somebody goofed, and named one of the
ReasonsFrameCannotBeInPageCache antonymically.

* history/PageCache.cpp:
(WebCore::logCanCacheFrameDecision):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110561 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/history/PageCache.cpp

index 3df0b5e..105e81d 100644 (file)
@@ -1,3 +1,16 @@
+2012-03-13  Gavin Peters  <gavinp@chromium.org>
+
+        Fix an enumeration name in ReasonsFrameCannotBeInPageCache.
+        https://bugs.webkit.org/show_bug.cgi?id=80849
+
+        Reviewed by Brady Eidson.
+
+        It seems that somebody goofed, and named one of the
+        ReasonsFrameCannotBeInPageCache antonymically.
+
+        * history/PageCache.cpp:
+        (WebCore::logCanCacheFrameDecision):
+
 2012-03-12  Kinuko Yasuda  <kinuko@chromium.org>
 
         File upload control should use File.name() rather than File.path() to show chosen filenames
index 9f1773c..3223f39 100644 (file)
@@ -76,7 +76,7 @@ enum ReasonFrameCannotBeInPageCache {
     QuickRedirectComing,
     IsLoadingInAPISense,
     IsStopping,
-    CanSuspendActiveDOMObjects,
+    CannotSuspendActiveDOMObjects,
     DocumentLoaderUsesApplicationCache,
     ClientDeniesCaching,
     NumberOfReasonsFramesCannotBeInPageCache,
@@ -159,7 +159,7 @@ static unsigned logCanCacheFrameDecision(Frame* frame, int indentLevel)
         }
         if (!frame->document()->canSuspendActiveDOMObjects()) {
             PCLOG("   -The document cannot suspect its active DOM Objects");
-            rejectReasons |= 1 << CanSuspendActiveDOMObjects;
+            rejectReasons |= 1 << CannotSuspendActiveDOMObjects;
         }
         if (!frame->loader()->documentLoader()->applicationCacheHost()->canCacheInPageCache()) {
             PCLOG("   -The DocumentLoader uses an application cache");