Changeset 70992 in webkit
- Timestamp:
- Oct 31, 2010 11:57:45 AM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r70991 r70992 1 2010-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 1 16 2010-10-31 Sheriff Bot <webkit.review.bot@gmail.com> 2 17 -
trunk/WebCore/platform/graphics/GraphicsContext.h
r69681 r70992 400 400 PlatformPath* currentPath(); 401 401 void pushTransparencyLayerInternal(const QRect &rect, qreal opacity, QPixmap& alphaMask); 402 QPen pen();403 402 static QPainter::CompositionMode toQtCompositionMode(CompositeOperator op); 404 403 #endif -
trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
r70870 r70992 506 506 path.setFillRule(Qt::WindingFill); 507 507 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();517 508 } 518 509 -
trunk/WebCore/platform/graphics/qt/PathQt.cpp
r69505 r70992 135 135 136 136 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(); 141 141 stroke.setWidth(pen.widthF()); 142 142 stroke.setCapStyle(pen.capStyle()); … … 163 163 FloatRect Path::strokeBoundingRect(StrokeStyleApplier* applier) 164 164 { 165 GraphicsContext* gc= scratchContext();165 GraphicsContext* context = scratchContext(); 166 166 QPainterPathStroker stroke; 167 167 if (applier) { 168 applier->strokeStyle( gc);169 170 QPen pen = gc->pen();168 applier->strokeStyle(context); 169 170 QPen pen = context->platformContext()->pen(); 171 171 stroke.setWidth(pen.widthF()); 172 172 stroke.setCapStyle(pen.capStyle());
Note: See TracChangeset
for help on using the changeset viewer.