Hi, all
Here I got a problem.
When I get the clicked node via hitTestResultAtPoint func:
WebCore::HitTestResult result =
pFrame->eventHandler()->hitTestResultAtPoint(
point,
false, /*allowShadowContent*/
true); /*ignoreClipping*/
And from the object "result", I wanna get the z-index of the "reusle" node:
WebCore::Node* hitNode = result.innerNode();
WebCore::Node* hitNonSharedNode = result.innerNonSharedNode();
int hitZ = hitNode->renderStyle()->zIndex();
int hitNonSharedZ = hitNonSharedNode->renderStyle()->zIndex();
But, no matter where i click, the obj "hitZ" and "hitNonSharedZ" are zero.
Is there something wrong? Some one can tell me how can I get the z-index of
the node I Click on.
Any help appreciated. :D_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help