⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 236112 in webkit


Ignore:
Timestamp:
Sep 18, 2018, 2:47:47 AM (8 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r235457 - Check for null renderer in canBeScrolledIntoView
https://bugs.webkit.org/show_bug.cgi?id=188935

Reviewed by Simon Fraser.

Source/WebCore:

Test: fast/spatial-navigation/snav-display-contents-crash.html

  • page/SpatialNavigation.cpp:

(WebCore::canBeScrolledIntoView):

LayoutTests:

  • fast/spatial-navigation/snav-display-contents-crash-expected.txt: Added.
  • fast/spatial-navigation/snav-display-contents-crash.html: Added.
Location:
releases/WebKitGTK/webkit-2.22
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.22/LayoutTests/ChangeLog

    r236110 r236112  
     12018-08-28  Don Olmstead  <don.olmstead@sony.com>
     2
     3        Check for null renderer in canBeScrolledIntoView
     4        https://bugs.webkit.org/show_bug.cgi?id=188935
     5
     6        Reviewed by Simon Fraser.
     7
     8        * fast/spatial-navigation/snav-display-contents-crash-expected.txt: Added.
     9        * fast/spatial-navigation/snav-display-contents-crash.html: Added.
     10
    1112018-08-28  Youenn Fablet  <youenn@apple.com>
    212
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog

    r236111 r236112  
     12018-08-28  Don Olmstead  <don.olmstead@sony.com>
     2
     3        Check for null renderer in canBeScrolledIntoView
     4        https://bugs.webkit.org/show_bug.cgi?id=188935
     5
     6        Reviewed by Simon Fraser.
     7
     8        Test: fast/spatial-navigation/snav-display-contents-crash.html
     9
     10        * page/SpatialNavigation.cpp:
     11        (WebCore::canBeScrolledIntoView):
     12
    1132018-08-28  Youenn Fablet  <youenn@apple.com>
    214
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/page/SpatialNavigation.cpp

    r232018 r236112  
    706706    LayoutRect candidateRect = candidate.rect;
    707707    for (Node* parentNode = candidate.visibleNode->parentNode(); parentNode; parentNode = parentNode->parentNode()) {
     708        if (!parentNode->renderer())
     709            continue;
    708710        LayoutRect parentRect = nodeRectInAbsoluteCoordinates(parentNode);
    709711        if (!candidateRect.intersects(parentRect)) {
Note: See TracChangeset for help on using the changeset viewer.