* Implement GraphicsContext::fillRoundedRect similiar to the
authorzecke@webkit.org <zecke@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Dec 2007 18:02:59 +0000 (18:02 +0000)
committerzecke@webkit.org <zecke@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Dec 2007 18:02:59 +0000 (18:02 +0000)
  CoreGraphics implementation only addPath is not called this
  seems to be only needed for CoreGraphics.

Signed-off-by: Simon
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28352 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/graphics/qt/GraphicsContextQt.cpp

index a05e914abf0f3a016e69c81c921a8248eb387d95..530b4f86d27ce8798f28f00b00cc7a09d309f533 100644 (file)
@@ -1,3 +1,17 @@
+2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
+
+        Reviewed by Simon.
+
+        * Implement GraphicsContext::fillRoundedRect similiar to the
+        CoreGraphics implementation only addPath is not called this
+        seems to be only needed for CoreGraphics.
+        
+
+        WARNING: NO TEST CASES ADDED OR CHANGED
+
+        * platform/graphics/qt/GraphicsContextQt.cpp:
+        (WebCore::GraphicsContext::fillRoundedRect):
+
 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
 
         Reviewed by Simon.
index 400bf2c70c64683632c3cd86b85574306d95e55a..ec0486d8604a34c6c69a38e60da5d9101a50b2a3 100644 (file)
@@ -494,8 +494,8 @@ void GraphicsContext::fillRoundedRect(const IntRect& rect, const IntSize& topLef
     if (paintingDisabled() || !color.alpha())
         return;
 
-    // FIXME: Implement.
-    notImplemented();
+    Path path = Path::createRoundedRectangle(rect, topLeft, topRight, bottomLeft, bottomRight);
+    m_data->p().fillPath(*path.platformPath(), QColor(color));
 }
 
 void GraphicsContext::beginPath()