Reviewed by Eric, landed by ap.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Dec 2005 18:59:51 +0000 (18:59 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Dec 2005 18:59:51 +0000 (18:59 +0000)
        Test: fast/block/basic/text-indent-rtl.html

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6214
          text-indent in RTL block does the opposite

        * khtml/rendering/render_block.cpp:
        (khtml::RenderBlock::rightRelOffset): Subtract the indent instead of adding it.

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

WebCore/ChangeLog
WebCore/khtml/rendering/render_block.cpp

index 60b333053ef981922e3dcce8cd9dd72552788922..86a0fe8ab36c56633a872884a2d694285e7f2917 100644 (file)
@@ -1,3 +1,15 @@
+2005-12-28  Mitz Pettel  <opendarwin.org@mitzpettel.com>
+
+        Reviewed by Eric, landed by ap.
+        
+        Test: fast/block/basic/text-indent-rtl.html
+
+        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6214
+          text-indent in RTL block does the opposite
+
+        * khtml/rendering/render_block.cpp:
+        (khtml::RenderBlock::rightRelOffset): Subtract the indent instead of adding it.
+
 2005-12-28  Mitz Pettel  <opendarwin.org@mitzpettel.com>
 
         Reviewed by Darin, landed by ap.
index ae175febbec7e55ba276639f2fc0279970d222e7..9bdde53b50097f5fb60946bbb009dddc774412a1 100644 (file)
@@ -2000,7 +2000,7 @@ RenderBlock::rightRelOffset(int y, int fixedOffset, bool applyTextIndent,
         int cw=0;
         if (style()->textIndent().isPercent())
             cw = containingBlock()->contentWidth();
-        right += style()->textIndent().minWidth(cw);
+        right -= style()->textIndent().minWidth(cw);
     }
     
     //kdDebug( 6040 ) << "rightOffset(" << y << ") = " << right << endl;