Changeset 74327 in webkit


Ignore:
Timestamp:
Dec 19, 2010 1:34:51 PM (13 years ago)
Author:
benjamin.poulain@nokia.com
Message:

2010-12-19 Benjamin Poulain <benjamin.poulain@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] [WK2] QWKPagePrivate::paint() does not need to save the graphics context
https://bugs.webkit.org/show_bug.cgi?id=51300

Remove the unnecessary save() and restore() on the QPainter.

  • UIProcess/API/qt/qwkpage.cpp: (QWKPagePrivate::paint):
Location:
trunk/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit2/ChangeLog

    r74324 r74327  
     12010-12-19  Benjamin Poulain  <benjamin.poulain@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] [WK2] QWKPagePrivate::paint() does not need to save the graphics context
     6        https://bugs.webkit.org/show_bug.cgi?id=51300
     7
     8        Remove the unnecessary save() and restore() on the QPainter.
     9
     10        * UIProcess/API/qt/qwkpage.cpp:
     11        (QWKPagePrivate::paint):
     12
    1132010-12-19  Kenneth Rohde Christiansen  <kenneth@webkit.org>
    214
  • trunk/WebKit2/UIProcess/API/qt/qwkpage.cpp

    r74322 r74327  
    161161void QWKPagePrivate::paint(QPainter* painter, QRect area)
    162162{
    163     painter->save();
    164 
    165163    if (page->isValid() && page->drawingArea())
    166164        page->drawingArea()->paint(IntRect(area), painter);
    167165    else
    168166        painter->fillRect(area, Qt::white);
    169 
    170     painter->restore();
    171167}
    172168
Note: See TracChangeset for help on using the changeset viewer.