Changeset 56581 in webkit
- Timestamp:
- Mar 25, 2010 5:24:34 PM (14 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/Api/qgraphicswebview.cpp
r56552 r56581 142 142 143 143 void _q_updateMicroFocus(); 144 void _q_pageDestroyed(); 144 145 145 146 QGraphicsWebView* q; … … 264 265 } 265 266 #endif 267 } 268 269 void QGraphicsWebViewPrivate::_q_pageDestroyed() 270 { 271 page = 0; 272 q->setPage(0); 266 273 } 267 274 … … 782 789 connect(d->page, SIGNAL(microFocusChanged()), 783 790 this, SLOT(_q_updateMicroFocus())); 791 connect(d->page, SIGNAL(destroyed()), 792 this, SLOT(_q_pageDestroyed())); 784 793 } 785 794 -
trunk/WebKit/qt/Api/qgraphicswebview.h
r56322 r56581 144 144 Q_PRIVATE_SLOT(d, void _q_doLoadFinished(bool success)) 145 145 Q_PRIVATE_SLOT(d, void _q_updateMicroFocus()) 146 Q_PRIVATE_SLOT(d, void _q_pageDestroyed()) 146 147 // we don't want to change the moc based on USE() macro, so this function is here 147 148 // but will be empty if ACCLERATED_COMPOSITING is disabled -
trunk/WebKit/qt/ChangeLog
r56577 r56581 1 2010-03-25 Yael Aharon <yael.aharon@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] QtLauncher crashes on Mac OS and Linux when exiting with QGraphicsView mode enabled 6 https://bugs.webkit.org/show_bug.cgi?id=35251 7 8 Followed the way QWebView registers for the signal QWebPage::destroyed(), to prevent 9 QGraphicsWebView from referencing QWebPage after it was deleted. 10 11 * Api/qgraphicswebview.cpp: 12 (QGraphicsWebViewPrivate::_q_pageDestroyed): 13 (QGraphicsWebView::setPage): 14 * Api/qgraphicswebview.h: 15 1 16 2010-03-25 Kent Hansen <kent.hansen@nokia.com> 2 17
Note: See TracChangeset
for help on using the changeset viewer.