Crashes in DrawingAreaProxy::setExposedRect (null DrawingAreaProxy)

https://bugs.webkit.org/show_bug.cgi?id=127445

Reviewed by Anders Carlsson.

* UIProcess/API/ios/WKContentView.mm:
(-[WKContentView _updateViewExposedRect]):
* UIProcess/API/mac/WKView.mm:
(-[WKView _updateViewExposedRect]):
Null-check.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7e94f53b
2014-01-22 Tim Horton <timothy_horton@apple.com>
Crashes in DrawingAreaProxy::setExposedRect (null DrawingAreaProxy)
https://bugs.webkit.org/show_bug.cgi?id=127445
Reviewed by Anders Carlsson.
* UIProcess/API/ios/WKContentView.mm:
(-[WKContentView _updateViewExposedRect]):
* UIProcess/API/mac/WKView.mm:
(-[WKView _updateViewExposedRect]):
Null-check.
2014-01-22 Anders Carlsson <andersca@apple.com>
Add WKWebView class
......
......@@ -142,7 +142,9 @@ using namespace WebKit;
{
FloatPoint exposedRectPosition = _currentExposedRectPosition;
exposedRectPosition.scale(_page->pageScaleFactor(), _page->pageScaleFactor());
_page->drawingArea()->setExposedRect(FloatRect(exposedRectPosition, _page->drawingArea()->size()));
if (auto drawingArea = _page->drawingArea())
drawingArea->setExposedRect(FloatRect(exposedRectPosition, _page->drawingArea()->size()));
}
- (void)setViewportSize:(CGSize)size
......
......@@ -391,7 +391,8 @@ struct WKViewInterpretKeyEventsParameters {
if (_data->_useContentPreparationRectForVisibleRect)
exposedRect = NSUnionRect(_data->_contentPreparationRect, exposedRect);
_data->_page->drawingArea()->setExposedRect(_data->_clipsToVisibleRect ? FloatRect(exposedRect) : FloatRect::infiniteRect());
if (auto drawingArea = _data->_page->drawingArea())
drawingArea->setExposedRect(_data->_clipsToVisibleRect ? FloatRect(exposedRect) : FloatRect::infiniteRect());
}
- (void)setFrameSize:(NSSize)size
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment