* platform/ContextMenu.cpp:
authorsullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Jan 2007 19:39:20 +0000 (19:39 +0000)
committersullivan <sullivan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Jan 2007 19:39:20 +0000 (19:39 +0000)
        (WebCore::ContextMenu::checkOrEnableIfNeeded):
        Leopard build fix; don't declare one of the case values twice

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

WebCore/ChangeLog
WebCore/platform/ContextMenu.cpp

index af7f7ac96aea4cfffd27616b11f0e08f462bcfeb..8bc3de998b50584386e7a46237bc4ebabad0a7d3 100644 (file)
@@ -1,3 +1,9 @@
+2007-01-15  John Sullivan  <sullivan@apple.com>
+
+        * platform/ContextMenu.cpp:
+        (WebCore::ContextMenu::checkOrEnableIfNeeded):
+        Leopard build fix; don't declare one of the case values twice
+
 2007-01-15  Mitz Pettel  <mitz@webkit.org>
 
         Reviewed by Darin.
index 0b56f7f3ee929b5bf421f12db0721c79d9d74a09..3a103eb6416d9b51651cc2358b522d7e7e2840f2 100644 (file)
@@ -408,13 +408,13 @@ void ContextMenu::checkOrEnableIfNeeded(ContextMenuItem& item) const
         case ContextMenuItemTagLookUpInDictionary:
             shouldEnable = frame->selectionController()->isRange();
             break;
-#ifndef BUILDING_ON_TIGER
         case ContextMenuItemTagCheckGrammarWithSpelling:
+#ifndef BUILDING_ON_TIGER
             if (frame->editor()->isGrammarCheckingEnabled())
                 shouldCheck = true;
             shouldEnable = true;
-            break;
 #endif
+            break;
         case ContextMenuItemTagItalic: {
             ExceptionCode ec = 0;
             RefPtr<CSSStyleDeclaration> style = frame->document()->createCSSStyleDeclaration();
@@ -478,7 +478,6 @@ void ContextMenu::checkOrEnableIfNeeded(ContextMenuItem& item) const
         case ContextMenuItemTagIgnoreGrammar:
         case ContextMenuItemTagSpellingMenu:
         case ContextMenuItemTagCheckSpellingWhileTyping:
-        case ContextMenuItemTagCheckGrammarWithSpelling:
         case ContextMenuItemTagFontMenu:
         case ContextMenuItemTagShowFonts:
         case ContextMenuItemTagStyles: