Changeset 87767 in webkit
- Timestamp:
- May 31, 2011 6:47:23 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r87762 r87767 1 2011-05-31 Rafael Brandao <rafael.lobo@openbossa.org> 2 3 Reviewed by Andreas Kling. 4 5 [Qt] tst_QWebFrame::render() failing 6 https://bugs.webkit.org/show_bug.cgi?id=60893 7 8 Due a problem on QPicture (http://bugreports.qt.nokia.com/browse/QTBUG-19496), 9 this test was calculating the final geometry incorrectly. As the order between 10 a translate and a draw operation could be relevant for it, but not for the 11 final rendered result, they were changed on ScrollbarThemeQt::paint. 12 13 * platform/qt/ScrollbarThemeQt.cpp: 14 (WebCore::ScrollbarThemeQt::paint): 15 1 16 2011-05-27 Adrienne Walker <enne@google.com> 2 17 -
trunk/Source/WebCore/platform/qt/ScrollbarThemeQt.cpp
r87290 r87767 164 164 #endif 165 165 { 166 // The QStyle expects the background to be already filled. 167 p.painter->fillRect(opt->rect, opt->palette.background()); 168 166 169 const QPoint topLeft = opt->rect.topLeft(); 167 170 p.painter->translate(topLeft); 168 171 opt->rect.moveTo(QPoint(0, 0)); 169 170 // The QStyle expects the background to be already filled.171 p.painter->fillRect(opt->rect, opt->palette.background());172 173 172 p.drawComplexControl(QStyle::CC_ScrollBar, *opt); 174 173 opt->rect.moveTo(topLeft); -
trunk/Source/WebKit/qt/ChangeLog
r87695 r87767 1 2011-05-31 Rafael Brandao <rafael.lobo@openbossa.org> 2 3 Reviewed by Andreas Kling. 4 5 [Qt] tst_QWebFrame::render() failing 6 https://bugs.webkit.org/show_bug.cgi?id=60893 7 8 The test was expecting the frame contents to be already loaded 9 before rendering it into a QPicture. Renamed the test to fit 10 its real purpose more accordingly. 11 12 * tests/qwebframe/tst_qwebframe.cpp: 13 (tst_QWebFrame::renderGeometry): 14 1 15 2011-05-30 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> 2 16 -
trunk/Source/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp
r87695 r87767 638 638 void baseUrl(); 639 639 void hasSetFocus(); 640 void render ();640 void renderGeometry(); 641 641 void renderHints(); 642 642 void scrollPosition(); … … 2882 2882 } 2883 2883 2884 void tst_QWebFrame::render ()2884 void tst_QWebFrame::renderGeometry() 2885 2885 { 2886 2886 QString html("<html>" \ … … 2898 2898 QString innerHtml("<body style='margin: 0px;'><img src='qrc:/image.png'/></body>"); 2899 2899 frame->setHtml(innerHtml); 2900 waitForSignal(frame, SIGNAL(loadFinished(bool)), 200); 2900 2901 2901 2902 QPicture picture;
Note: See TracChangeset
for help on using the changeset viewer.