2006-11-06 Oliver Hunt <oliver@apple.com>
authoroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Nov 2006 09:16:32 +0000 (09:16 +0000)
committeroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Nov 2006 09:16:32 +0000 (09:16 +0000)
        Reviewed by Maciej.

        Fix RTL text in SVG to have correct positioning

        * rendering/SVGRootInlineBox.cpp:
        (WebCore::SVGRootInlineBox::placeBoxesHorizontally):

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

WebCore/ChangeLog
WebCore/rendering/SVGRootInlineBox.cpp

index 2908171169536cb3fa829c05a9f78ae0c3df0cac..e2a32fce9498b1e04096b1449695455561f9bcec 100644 (file)
@@ -1,3 +1,12 @@
+2006-11-06  Oliver Hunt  <oliver@apple.com>
+
+        Reviewed by Maciej.
+
+        Fix RTL text in SVG to have correct positioning
+
+        * rendering/SVGRootInlineBox.cpp:
+        (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
+
 2006-11-06  Alexey Proskuryakov  <ap@webkit.org>
 
         Reviewed by Maciej.
index 9085b531454f00dde127a97625d17e6d1df49a2a..e1ba1a6f9f1fb4beb2195d95fa43b66310681eb4 100644 (file)
@@ -38,6 +38,10 @@ void SVGRootInlineBox::paint(RenderObject::PaintInfo& paintInfo, int parentX, in
 
 int SVGRootInlineBox::placeBoxesHorizontally(int x, int& leftPosition, int& rightPosition, bool& needsWordSpacing)
 {
+    //remove any offsets caused by RTL text layout
+    x = 0;
+    leftPosition = 0;
+    rightPosition = 0;
     return placeSVGFlowHorizontally(this, x, leftPosition, rightPosition, needsWordSpacing);
 }