2006-12-22 Mitz Pettel <mitz@webkit.org>
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Dec 2006 19:26:12 +0000 (19:26 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Dec 2006 19:26:12 +0000 (19:26 +0000)
        Reviewed by Beth.

        - fix http://bugs.webkit.org/show_bug.cgi?id=11903
          REGRESSION: outline not drawn if line style is dashed.

        This fixes a bunch of existing pixel tests.

        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::drawBorder):

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

WebCore/ChangeLog
WebCore/rendering/RenderObject.cpp

index 01bcf3e..5f3d2ab 100644 (file)
@@ -1,3 +1,15 @@
+2006-12-22  Mitz Pettel  <mitz@webkit.org>
+
+        Reviewed by Beth.
+
+        - fix http://bugs.webkit.org/show_bug.cgi?id=11903
+          REGRESSION: outline not drawn if line style is dashed.
+
+        This fixes a bunch of existing pixel tests.
+
+        * rendering/RenderObject.cpp:
+        (WebCore::RenderObject::drawBorder):
+
 2006-12-22  John Sullivan  <sullivan@apple.com>
 
         Reviewed by Kevin Decker
index f08af9f..ddf272b 100644 (file)
@@ -966,7 +966,7 @@ void RenderObject::drawBorder(GraphicsContext* graphicsContext, int x1, int y1,
         case DOTTED:
         case DASHED:
             graphicsContext->setStrokeColor(c);
-            graphicsContext->setStrokeThickness(width == 1 ? 0 : width);
+            graphicsContext->setStrokeThickness(width);
             graphicsContext->setStrokeStyle(style == DASHED ? DashedStroke : DottedStroke);
 
             if (width > 0)