Changeset 74248 in webkit


Ignore:
Timestamp:
Dec 17, 2010 4:05:22 AM (13 years ago)
Author:
andreas.kling@nokia.com
Message:

2010-12-17 Andreas Kling <andreas.kling@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Avoid unnecessary calls to GraphicsContextPlatformPrivate::p()
https://bugs.webkit.org/show_bug.cgi?id=49954

  • platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::GraphicsContext::pushTransparencyLayerInternal): (WebCore::GraphicsContext::beginTransparencyLayer):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r74246 r74248  
     12010-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
    1122010-12-17  Carlos Garcia Campos  <cgarcia@igalia.com>
    213
  • trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp

    r74220 r74248  
    966966void GraphicsContext::pushTransparencyLayerInternal(const QRect &rect, qreal opacity, QPixmap& alphaMask)
    967967{
    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));
    969970}
    970971
     
    989990
    990991    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));
    992993    ++m_data->layerCount;
    993994}
Note: See TracChangeset for help on using the changeset viewer.