Changeset 57211 in webkit


Ignore:
Timestamp:
Apr 7, 2010 9:32:10 AM (14 years ago)
Author:
tonikitoo@webkit.org
Message:

Spatial Navigation: bail out as soon as algorithm finds a focus candidate is not applicable https://bugs.webkit.org/show_bug.cgi?id=37135

Reviewed by Kenneth Christiansen.
Patch by Antonio Gomes <tonikitoo@webkit.org>

It happens, for example, when distanceDataForNode assigns numeric_limits<long long> to
current focus candidate's. It means that current candidate is not in direction, or not
a valid target node.

  • page/FocusController.cpp:

(WebCore::FocusController::findFocusableNodeInDirection):

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57210 r57211  
     12010-04-05  Antonio Gomes  <tonikitoo@webkit.org>
     2
     3        Reviewed by Kenneth Christiansen.
     4
     5        Spatial Navigation: bail out as soon as algorithm finds a focus candidate is not applicable
     6        https://bugs.webkit.org/show_bug.cgi?id=37135
     7
     8        It happens, for example, when distanceDataForNode assigns numeric_limits<long long> to
     9        current focus candidate's. It means that current candidate is not in direction, or not
     10        a valid target node.
     11
     12        * page/FocusController.cpp:
     13        (WebCore::FocusController::findFocusableNodeInDirection):
     14
    1152010-04-07  Andrey Kosyakov  <caseq@chromium.org>
    216
  • trunk/WebCore/page/FocusController.cpp

    r57061 r57211  
    407407            distanceDataForNode(direction, focusedNode, currentFocusCandidate);
    408408
     409            // Bail out if distance is maximum.
     410            if (currentFocusCandidate.distance == maxDistance())
     411                continue;
     412
    409413            // If candidateParent is not null, it means that we are in a recursive call
    410414            // from deepFineFocusableNodeInDirection (i.e. processing an element in an iframe),
Note: See TracChangeset for help on using the changeset viewer.