[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/unity/WebKit/WebCore/kcanvas/device/qt
From: Nikolas Zimmermann <wildfox () kde ! org>
Date: 2006-08-10 23:37:11
Message-ID: 1155253031.623456.30371.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 571874 by wildfox:
Add gradient support from khtml-svg branch, untested so far... (going to bed soon :-)
M +8 -2 KRenderingDeviceQt.cpp
M +1 -0 KRenderingDeviceQt.h
A KRenderingPaintServerGradientQt.cpp [License: LGPL (v2+)]
A KRenderingPaintServerGradientQt.h [License: LGPL (v2+)]
--- branches/work/unity/WebKit/WebCore/kcanvas/device/qt/KRenderingDeviceQt.cpp #571873:571874
@@ -28,6 +28,7 @@
#include "GraphicsContext.h"
#include "KRenderingDeviceQt.h"
#include "KRenderingPaintServerSolidQt.h"
+#include "KRenderingPaintServerGradientQt.h"
namespace WebCore {
@@ -82,6 +83,11 @@
return *m_painter;
}
+QRectF KRenderingDeviceContextQt::pathBBox() const
+{
+ return m_path.boundingRect();
+}
+
void KRenderingDeviceContextQt::setFillRule(KCWindRule rule)
{
m_path.setFillRule(rule == RULE_EVENODD ? Qt::OddEvenFill : Qt::WindingFill);
@@ -165,9 +171,9 @@
case PS_PATTERN:
// return new KRenderingPaintServerPatternQt();
case PS_LINEAR_GRADIENT:
- // return new KRenderingPaintServerLinearGradientQt();
+ return new KRenderingPaintServerLinearGradientQt();
case PS_RADIAL_GRADIENT:
- // return new KRenderingPaintServerRadialGradientQt();
+ return new KRenderingPaintServerRadialGradientQt();
default:
return 0;
}
--- branches/work/unity/WebKit/WebCore/kcanvas/device/qt/KRenderingDeviceQt.h #571873:571874
@@ -49,6 +49,7 @@
// Qt specific stuff
QPainter &painter();
+ QRectF pathBBox() const;
void setFillRule(KCWindRule rule);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic