Changeset 163001 in webkit


Ignore:
Timestamp:
Jan 28, 2014 9:22:38 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[iOS] UI process crashes whenever web process crashes
https://bugs.webkit.org/show_bug.cgi?id=127826

Patch by Ian Henderson <ianh@apple.com> on 2014-01-28
Reviewed by Tim Horton.

  • UIProcess/API/ios/WKContentView.mm:

(-[WKContentView _updateFixedPositionRect]): Null-check the drawing
area before calling size() on it.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r163000 r163001  
     12014-01-28  Ian Henderson  <ianh@apple.com>
     2
     3        [iOS] UI process crashes whenever web process crashes
     4        https://bugs.webkit.org/show_bug.cgi?id=127826
     5
     6        Reviewed by Tim Horton.
     7
     8        * UIProcess/API/ios/WKContentView.mm:
     9        (-[WKContentView _updateFixedPositionRect]): Null-check the drawing
     10        area before calling size() on it.
     11
    1122014-01-28  Ian Henderson  <ianh@apple.com>
    213
  • trunk/Source/WebKit2/UIProcess/API/ios/WKContentView.mm

    r162882 r163001  
    196196- (void)_updateFixedPositionRect
    197197{
    198     FloatRect exposedRect(_currentExposedRectPosition, _page->drawingArea()->size());
     198    auto drawingArea = _page->drawingArea();
     199    if (!drawingArea)
     200        return;
     201    FloatRect exposedRect(_currentExposedRectPosition, drawingArea->size());
    199202    FloatRect fixedPosRect = [self fixedPositionRectFromExposedRect:exposedRect scale:_page->pageScaleFactor()];
    200 
    201     if (auto drawingArea = _page->drawingArea())
    202         drawingArea->setCustomFixedPositionRect(fixedPosRect);
     203    drawingArea->setCustomFixedPositionRect(fixedPosRect);
    203204}
    204205
Note: See TracChangeset for help on using the changeset viewer.