Changeset 112084 in webkit


Ignore:
Timestamp:
Mar 26, 2012 6:23:22 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt] Taps are sometimes not highlighted.
https://bugs.webkit.org/show_bug.cgi?id=82188

Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-03-26
Reviewed by Kenneth Rohde Christiansen.

Highlight any focusable parent element, or if none is found at least
the element returned by bestClickableNodeForTouchPoint.

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::highlightPotentialActivation):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r112073 r112084  
     12012-03-26  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
     2
     3        [Qt] Taps are sometimes not highlighted.
     4        https://bugs.webkit.org/show_bug.cgi?id=82188
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Highlight any focusable parent element, or if none is found at least
     9        the element returned by bestClickableNodeForTouchPoint.
     10
     11        * WebProcess/WebPage/WebPage.cpp:
     12        (WebKit::WebPage::highlightPotentialActivation):
     13
    1142012-03-26  Sheriff Bot  <webkit.review.bot@gmail.com>
    215
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r111521 r112084  
    14621462        activationNode = result.innerNode();
    14631463#endif
    1464         if (activationNode && !activationNode->isFocusable())
    1465             activationNode = activationNode->enclosingLinkEventParentOrSelf();
     1464        if (activationNode && !activationNode->isFocusable()) {
     1465            for (Node* node = activationNode; node; node = node->parentOrHostNode()) {
     1466                if (node->isFocusable()) {
     1467                    activationNode = node;
     1468                    break;
     1469                }
     1470            }
     1471        }
    14661472    }
    14671473
Note: See TracChangeset for help on using the changeset viewer.