Changeset 34764 in webkit


Ignore:
Timestamp:
Jun 24, 2008 3:58:32 AM (16 years ago)
Author:
Simon Hausmann
Message:

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.

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r34763 r34764  
     12008-06-24  Jonathon Jongsma  <jonathon.jongsma@collabora.co.uk>
     2
     3        Reviewed by Simon.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=18459
     6
     7        Clean up and remove unused platform shadow code.
     8
     9        Minor edits by Simon, removed unused TextShadow struct.
     10
     11        * platform/graphics/qt/GraphicsContextQt.cpp:
     12        (WebCore::GraphicsContext::setPlatformShadow):
     13        (WebCore::GraphicsContext::clearPlatformShadow): Qt doesn't support a
     14        platform shadow, so just make these functions empty.  The shadows are
     15        drawn manually in function like drawLine(), etc.
     16
    1172008-06-24  Jonathon Jongsma  <jonathon.jongsma@collabora.co.uk>
    218
  • trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp

    r34763 r34764  
    180180};
    181181
    182 struct TextShadow
    183 {
    184     TextShadow()
    185         : x(0)
    186         , y(0)
    187         , blur(0)
    188     {
    189     }
    190 
    191     bool isNull() { return !x && !y && !blur; }
    192 
    193     int x;
    194     int y;
    195     int blur;
    196 
    197     Color color;
    198 };
    199 
    200182class GraphicsContextPlatformPrivate
    201183{
     
    219201    QStack<TransparencyLayer *> layers;
    220202    QPainter* redirect;
    221 
    222     TextShadow shadow;
    223203
    224204    // Only used by SVG for now.
     
    650630void GraphicsContext::setPlatformShadow(const IntSize& pos, int blur, const Color &color)
    651631{
    652     if (paintingDisabled())
    653         return;
    654 
    655     m_data->shadow.x = pos.width();
    656     m_data->shadow.y = pos.height();
    657     m_data->shadow.blur = blur;
    658     m_data->shadow.color = color;
     632    // Qt doesn't support shadows natively, they are drawn manually in the draw*
     633    // functions
    659634}
    660635
    661636void GraphicsContext::clearPlatformShadow()
    662637{
    663     if (paintingDisabled())
    664         return;
    665 
    666     m_data->shadow = TextShadow();
     638    // Qt doesn't support shadows natively, they are drawn manually in the draw*
     639    // functions
    667640}
    668641
Note: See TracChangeset for help on using the changeset viewer.