Changeset 70992 in webkit


Ignore:
Timestamp:
Oct 31, 2010 11:57:45 AM (13 years ago)
Author:
andreas.kling@nokia.com
Message:

2010-10-31 Andreas Kling <kling@webkit.org>

Reviewed by Dirk Schulze.

[Qt] Remove GraphicsContext::pen()
https://bugs.webkit.org/show_bug.cgi?id=48733

Have PathQt obtain the pen() through the platformContext() instead.

  • platform/graphics/GraphicsContext.h:
  • platform/graphics/qt/GraphicsContextQt.cpp:
  • platform/graphics/qt/PathQt.cpp: (WebCore::Path::strokeContains): (WebCore::Path::strokeBoundingRect):
Location:
trunk/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r70991 r70992  
     12010-10-31  Andreas Kling  <kling@webkit.org>
     2
     3        Reviewed by Dirk Schulze.
     4
     5        [Qt] Remove GraphicsContext::pen()
     6        https://bugs.webkit.org/show_bug.cgi?id=48733
     7
     8        Have PathQt obtain the pen() through the platformContext() instead.
     9
     10        * platform/graphics/GraphicsContext.h:
     11        * platform/graphics/qt/GraphicsContextQt.cpp:
     12        * platform/graphics/qt/PathQt.cpp:
     13        (WebCore::Path::strokeContains):
     14        (WebCore::Path::strokeBoundingRect):
     15
    1162010-10-31  Sheriff Bot  <webkit.review.bot@gmail.com>
    217
  • trunk/WebCore/platform/graphics/GraphicsContext.h

    r69681 r70992  
    400400        PlatformPath* currentPath();
    401401        void pushTransparencyLayerInternal(const QRect &rect, qreal opacity, QPixmap& alphaMask);
    402         QPen pen();
    403402        static QPainter::CompositionMode toQtCompositionMode(CompositeOperator op);
    404403#endif
  • trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp

    r70870 r70992  
    506506    path.setFillRule(Qt::WindingFill);
    507507    m_data->p()->setClipPath(path, Qt::IntersectClip);
    508 }
    509 
    510 QPen GraphicsContext::pen()
    511 {
    512     if (paintingDisabled())
    513         return QPen();
    514 
    515     QPainter* p = m_data->p();
    516     return p->pen();
    517508}
    518509
  • trunk/WebCore/platform/graphics/qt/PathQt.cpp

    r69505 r70992  
    135135
    136136    QPainterPathStroker stroke;
    137     GraphicsContext* gc = scratchContext();
    138     applier->strokeStyle(gc);
    139 
    140     QPen pen = gc->pen();
     137    GraphicsContext* context = scratchContext();
     138    applier->strokeStyle(context);
     139
     140    QPen pen = context->platformContext()->pen();
    141141    stroke.setWidth(pen.widthF());
    142142    stroke.setCapStyle(pen.capStyle());
     
    163163FloatRect Path::strokeBoundingRect(StrokeStyleApplier* applier)
    164164{
    165     GraphicsContext* gc = scratchContext();
     165    GraphicsContext* context = scratchContext();
    166166    QPainterPathStroker stroke;
    167167    if (applier) {
    168         applier->strokeStyle(gc);
    169 
    170         QPen pen = gc->pen();
     168        applier->strokeStyle(context);
     169
     170        QPen pen = context->platformContext()->pen();
    171171        stroke.setWidth(pen.widthF());
    172172        stroke.setCapStyle(pen.capStyle());
Note: See TracChangeset for help on using the changeset viewer.