Commit 6b27f0e8 authored by hausmann@webkit.org's avatar hausmann@webkit.org
Browse files

2008-06-24 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>

        Reviewed by Simon.

        https://bugs.webkit.org/show_bug.cgi?id=18459

        Clean up and remove unused platform shadow code.

        Minor edits by Simon, removed unused TextShadow struct.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1b973869
2008-06-24 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
Reviewed by Simon.
https://bugs.webkit.org/show_bug.cgi?id=18459
Clean up and remove unused platform shadow code.
Minor edits by Simon, removed unused TextShadow struct.
* platform/graphics/qt/GraphicsContextQt.cpp:
(WebCore::GraphicsContext::setPlatformShadow):
(WebCore::GraphicsContext::clearPlatformShadow): Qt doesn't support a
platform shadow, so just make these functions empty. The shadows are
drawn manually in function like drawLine(), etc.
2008-06-24 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
 
Reviewed by Simon.
......@@ -179,24 +179,6 @@ private:
TransparencyLayer & operator=(const TransparencyLayer &) { return *this; }
};
struct TextShadow
{
TextShadow()
: x(0)
, y(0)
, blur(0)
{
}
bool isNull() { return !x && !y && !blur; }
int x;
int y;
int blur;
Color color;
};
class GraphicsContextPlatformPrivate
{
public:
......@@ -219,8 +201,6 @@ public:
QStack<TransparencyLayer *> layers;
QPainter* redirect;
TextShadow shadow;
// Only used by SVG for now.
QPainterPath currentPath;
......@@ -649,21 +629,14 @@ FloatRect GraphicsContext::roundToDevicePixels(const FloatRect& frect)
void GraphicsContext::setPlatformShadow(const IntSize& pos, int blur, const Color &color)
{
if (paintingDisabled())
return;
m_data->shadow.x = pos.width();
m_data->shadow.y = pos.height();
m_data->shadow.blur = blur;
m_data->shadow.color = color;
// Qt doesn't support shadows natively, they are drawn manually in the draw*
// functions
}
void GraphicsContext::clearPlatformShadow()
{
if (paintingDisabled())
return;
m_data->shadow = TextShadow();
// Qt doesn't support shadows natively, they are drawn manually in the draw*
// functions
}
void GraphicsContext::beginTransparencyLayer(float opacity)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment