Changeset 65776 in webkit


Ignore:
Timestamp:
Aug 21, 2010 1:33:25 AM (14 years ago)
Author:
ariya@webkit.org
Message:

[Qt] Faster bounding rect for the shadow clip region
https://bugs.webkit.org/show_bug.cgi?id=44369

Patch by Ariya Hidayat <ariya@sencha.com> on 2010-08-21
Reviewed by Kenneth Rohde Christiansen.

Like in r65650, we should use the faster QPainter::clipBoundingRect
when it is available.

  • platform/graphics/qt/ContextShadow.cpp:

(WebCore::ContextShadow::drawShadowRect):

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r65775 r65776  
     12010-08-21  Ariya Hidayat  <ariya@sencha.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Faster bounding rect for the shadow clip region
     6        https://bugs.webkit.org/show_bug.cgi?id=44369
     7
     8        Like in r65650, we should use the faster QPainter::clipBoundingRect
     9        when it is available.
     10
     11        * platform/graphics/qt/ContextShadow.cpp:
     12        (WebCore::ContextShadow::drawShadowRect):
     13
    1142010-08-20  Girish Ramakrishnan  <girish@forwardbias.in>
    215
  • trunk/WebCore/platform/graphics/qt/ContextShadow.cpp

    r65654 r65776  
    284284        QRect clipRect;
    285285        if (p->hasClipping())
     286#if QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)
     287            clipRect = p->clipBoundingRect();
     288#else
    286289            clipRect = p->clipRegion().boundingRect();
     290#endif
    287291        else
    288292            clipRect = p->transform().inverted().mapRect(p->window());
Note: See TracChangeset for help on using the changeset viewer.