Changeset 143335 in webkit


Ignore:
Timestamp:
Feb 19, 2013 8:26:25 AM (11 years ago)
Author:
abecsi@webkit.org
Message:

[Qt][WK2] ASSERT(node) hit in WebPage::findZoomableAreaForPoint if no zoomable area found
https://bugs.webkit.org/show_bug.cgi?id=110220

Reviewed by Allan Sandfeld Jensen.

If EventHandler::bestZoomableAreaForTouchPoint was unsuccessfull, eg.
no node was found for a given point, we hit ASSERT(node).
We should only assert for a valid node if a zoomable area was found.

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::findZoomableAreaForPoint):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r143332 r143335  
     12013-02-19  Andras Becsi  <andras.becsi@digia.com>
     2
     3        [Qt][WK2] ASSERT(node) hit in WebPage::findZoomableAreaForPoint if no zoomable area found
     4        https://bugs.webkit.org/show_bug.cgi?id=110220
     5
     6        Reviewed by Allan Sandfeld Jensen.
     7
     8        If EventHandler::bestZoomableAreaForTouchPoint was unsuccessfull, eg.
     9        no node was found for a given point, we hit ASSERT(node).
     10        We should only assert for a valid node if a zoomable area was found.
     11
     12        * WebProcess/WebPage/WebPage.cpp:
     13        (WebKit::WebPage::findZoomableAreaForPoint):
     14
    1152013-02-19  Christophe Dumez  <ch.dumez@sisa.samsung.com>
    216
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp

    r142977 r143335  
    30163016    IntRect zoomableArea;
    30173017    bool foundAreaForTouchPoint = m_mainFrame->coreFrame()->eventHandler()->bestZoomableAreaForTouchPoint(point, IntSize(area.width() / 2, area.height() / 2), zoomableArea, node);
     3018
     3019    if (!foundAreaForTouchPoint)
     3020        return;
     3021
    30183022    ASSERT(node);
    3019 
    3020     if (!foundAreaForTouchPoint)
    3021         return;
    30223023
    30233024    if (node->document() && node->document()->view())
Note: See TracChangeset for help on using the changeset viewer.