- fixed deployment build problems noticed by Grant
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Sep 2004 21:46:00 +0000 (21:46 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Sep 2004 21:46:00 +0000 (21:46 +0000)
        * khtml/rendering/render_flow.cpp:
        (RenderFlow::caretRect):
        * khtml/rendering/render_text.cpp:
        (RenderText::caretRect):

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

WebCore/ChangeLog-2005-08-23
WebCore/khtml/rendering/render_flow.cpp
WebCore/khtml/rendering/render_text.cpp

index e84cbac..0f0aa8f 100644 (file)
@@ -1,3 +1,12 @@
+2004-09-08  Maciej Stachowiak  <mjs@apple.com>
+
+        - fixed deployment build problems noticed by Grant
+
+        * khtml/rendering/render_flow.cpp:
+        (RenderFlow::caretRect):
+        * khtml/rendering/render_text.cpp:
+        (RenderText::caretRect):
+
 2004-09-08  David Hyatt  <hyatt@apple.com>
 
        Fix XML so that elements with no namespace never make HTML elements (when their names coincidentally match).
index 20d3446..bebbf65 100644 (file)
@@ -513,6 +513,7 @@ QRect RenderFlow::caretRect(int offset, bool override)
         case KHTML_LEFT:
         case TAAUTO:
         case JUSTIFY:
+        default:
             _x = 0;
             break;
         case CENTER:
index f0b9910..c6adea5 100644 (file)
@@ -667,7 +667,7 @@ QRect RenderText::caretRect(int offset, bool override)
         return QRect(-1, -1, 1, -1);
     }
 
-    int _x, _y, width, height;
+    int _x, _y, height;
 
     height = box->root()->bottomOverflow() - box->root()->topOverflow();
     _y = box->root()->topOverflow();
@@ -688,7 +688,7 @@ QRect RenderText::caretRect(int offset, bool override)
     _x += absx;
     _y += absy;
 
-    return QRect(_x, _y, width, height);
+    return QRect(_x, _y, 1, height);
 }
 
 void RenderText::posOfChar(int chr, int &x, int &y)