Changeset 147945 in webkit
- Timestamp:
- Apr 8, 2013 1:05:42 PM (11 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r147905 r147945 1178 1178 bool WebPagePrivate::shouldZoomAboutPoint(double scale, const FloatPoint&, bool enforceScaleClamping, double* clampedScale) 1179 1179 { 1180 if (!m_mainFrame ->view())1180 if (!m_mainFrame || !m_mainFrame->view()) 1181 1181 return false; 1182 1182 … … 1382 1382 bool WebPagePrivate::shouldSendResizeEvent() 1383 1383 { 1384 if (!m_mainFrame ->document())1384 if (!m_mainFrame || !m_mainFrame->document()) 1385 1385 return false; 1386 1386 … … 1519 1519 IntSize WebPagePrivate::contentsSize() const 1520 1520 { 1521 if (!m_mainFrame ->view())1521 if (!m_mainFrame || !m_mainFrame->view()) 1522 1522 return IntSize(); 1523 1523 … … 1527 1527 IntSize WebPagePrivate::absoluteVisibleOverflowSize() const 1528 1528 { 1529 if (!m_mainFrame ->contentRenderer())1529 if (!m_mainFrame || !m_mainFrame->contentRenderer()) 1530 1530 return IntSize(); 1531 1531 … … 1860 1860 bool WebPagePrivate::setViewMode(ViewMode mode) 1861 1861 { 1862 if (!m_mainFrame ->view())1862 if (!m_mainFrame || !m_mainFrame->view()) 1863 1863 return false; 1864 1864 -
trunk/Source/WebKit/blackberry/ChangeLog
r147936 r147945 1 2013-04-08 Jakob Petsovits <jpetsovits@blackberry.com> 2 3 [BlackBerry] More null checks for m_mainFrame 4 https://bugs.webkit.org/show_bug.cgi?id=114172 5 6 Reviewed by Rob Buis. 7 8 After r147744, some unit tests were crashing on WebPage 9 shutdown, because BackingStorePrivate::repaint() now uses 10 pixelContentsRect() (accessing m_webPage->contentsRect()) 11 instead of BackingStoreClient::contentsRect(). In m_webPage, 12 m_mainFrame had already been set to 0. 13 14 Make us more robust against these errors by checking 15 the existence of m_mainFrame more diligently. 16 17 * Api/WebPage.cpp: 18 (BlackBerry::WebKit::WebPagePrivate::shouldZoomAboutPoint): 19 (BlackBerry::WebKit::WebPagePrivate::shouldSendResizeEvent): 20 (BlackBerry::WebKit::WebPagePrivate::contentsSize): 21 (BlackBerry::WebKit::WebPagePrivate::absoluteVisibleOverflowSize): 22 (BlackBerry::WebKit::WebPagePrivate::setViewMode): 23 1 24 2013-04-08 Iris Wu <shuwu@blackberry.com> 2 25
Note: See TracChangeset
for help on using the changeset viewer.