Reviewed by Darin.
authorvicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Feb 2005 18:17:00 +0000 (18:17 +0000)
committervicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Feb 2005 18:17:00 +0000 (18:17 +0000)
- fix deployment build breakage on Panther

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView toggleBaseWritingDirection:]):

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

WebKit/ChangeLog
WebKit/WebView.subproj/WebHTMLView.m

index 3613bb6e7d009b30103c8ebaee3dc40fafb11009..f97d4291f8bafffa263cb6bc9a0ddcd540a805f9 100644 (file)
@@ -1,3 +1,12 @@
+2005-02-03  Vicki Murley  <vicki@apple.com>
+
+        Reviewed by Darin.
+
+       - fix deployment build breakage on Panther
+        * WebView.subproj/WebHTMLView.m:
+        (-[WebHTMLView toggleBaseWritingDirection:]):
+
 2005-02-02  John Sullivan  <sullivan@apple.com>
 
         Reviewed by Chris.
index 2297fc4f2f837b615140addec71388f198dfca03..93bc2ee8416c80678106dd9e7c8243d30ec9ca5f 100644 (file)
@@ -4283,19 +4283,20 @@ static DOMRange *unionDOMRanges(DOMRange *a, DOMRange *b)
     if (![self _canEdit])
         return;
     
-    NSString *direction;
+    NSString *direction = @"RTL";
     switch ([[self _bridge] baseWritingDirectionForSelectionStart]) {
         case NSWritingDirectionLeftToRight:
-            direction = @"RTL";
             break;
         case NSWritingDirectionRightToLeft:
             direction = @"LTR";
             break;
         // The writingDirectionForSelectionStart method will never return "natural". It
         // will always return a concrete direction. So, keep the compiler happy, and assert not reached.
+#if !BUILDING_ON_PANTHER   
         case NSWritingDirectionNatural:
             ASSERT_NOT_REACHED();
             break;
+#endif
     }
 
     DOMCSSStyleDeclaration *style = [self _emptyStyle];