Changeset 74248 in webkit
- Timestamp:
- Dec 17, 2010 4:05:22 AM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r74246 r74248 1 2010-12-17 Andreas Kling <andreas.kling@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Avoid unnecessary calls to GraphicsContextPlatformPrivate::p() 6 https://bugs.webkit.org/show_bug.cgi?id=49954 7 8 * platform/graphics/qt/GraphicsContextQt.cpp: 9 (WebCore::GraphicsContext::pushTransparencyLayerInternal): 10 (WebCore::GraphicsContext::beginTransparencyLayer): 11 1 12 2010-12-17 Carlos Garcia Campos <cgarcia@igalia.com> 2 13 -
trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
r74220 r74248 966 966 void GraphicsContext::pushTransparencyLayerInternal(const QRect &rect, qreal opacity, QPixmap& alphaMask) 967 967 { 968 m_data->layers.push(new TransparencyLayer(m_data->p(), m_data->p()->transform().mapRect(rect), 1.0, alphaMask)); 968 QPainter* p = m_data->p(); 969 m_data->layers.push(new TransparencyLayer(p, p->transform().mapRect(rect), 1.0, alphaMask)); 969 970 } 970 971 … … 989 990 990 991 QPixmap emptyAlphaMask; 991 m_data->layers.push(new TransparencyLayer( m_data->p(), QRect(x, y, w, h), opacity, emptyAlphaMask));992 m_data->layers.push(new TransparencyLayer(p, QRect(x, y, w, h), opacity, emptyAlphaMask)); 992 993 ++m_data->layerCount; 993 994 }
Note: See TracChangeset
for help on using the changeset viewer.