Fix the issue that overflow scrolling does not work properly.
authorHurnjoo Lee <hurnjoo.lee@samsung.com>
Fri, 2 Aug 2013 07:45:53 +0000 (16:45 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 2 Aug 2013 11:42:49 +0000 (11:42 +0000)
[Title] Fix the issue that overflow scrolling does not work properly.
[Issues] N_SE-47589 (issue#1)
[Problem] overflow scrolling does not work properly.
[Cause] A webLayerID is always zero because of order of evaluation of function arguments.
[Solution] Before PageClientImpl::setOverflowResult is called, the webLayerID should be set.

Change-Id: I13d317bea4cebd733be7d5e2fa60882dbb07a4f6

Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp

index 3c577ed..daa5446 100755 (executable)
@@ -1436,7 +1436,8 @@ void PageClientImpl::findScrollableNode(const IntPoint& point)
         DrawingAreaProxy* drawingArea = pageProxy->drawingArea();
         checkOverflowLayer = drawingArea && drawingArea->layerTreeCoordinatorProxy() && drawingArea->layerTreeCoordinatorProxy()->hasOverflowLayer();
 #endif
-        setOverflowResult(pageProxy->setPressedNodeAtPoint(pointForPress, checkOverflowLayer, webLayerID), webLayerID);
+        bool result = pageProxy->setPressedNodeAtPoint(pointForPress, checkOverflowLayer, webLayerID);
+        setOverflowResult(result, webLayerID);
     }
 }
 #endif