Commit ad014492 authored by oliver@apple.com's avatar oliver@apple.com

2008-12-29 Josh Roesslein <jroesslein@gmail.com>

Reviewed by Oliver Hunt.

Fixes: https://bugs.webkit.org/show_bug.cgi?id=22968

Context menu rendering error when full page zoomed


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 22eca8b8
2008-12-29 Josh Roesslein <jroesslein@gmail.com>
Reviewed by Oliver Hunt.
Fixes: https://bugs.webkit.org/show_bug.cgi?id=22968
Context menu rendering error when full page zoomed
* page/ContextMenuController.cpp:
(WebCore::ContextMenuController::handleContextMenuEvent):
2008-12-29 Sam Weinig <sam@webkit.org>
Reviewed by Mark Rowe.
......@@ -86,9 +86,13 @@ void ContextMenuController::handleContextMenuEvent(Event* event)
IntPoint point = IntPoint(mouseEvent->pageX(), mouseEvent->pageY());
HitTestResult result(point);
if (Frame* frame = event->target()->toNode()->document()->frame())
if (Frame* frame = event->target()->toNode()->document()->frame()) {
float zoomFactor = frame->pageZoomFactor();
point.setX(static_cast<int>(point.x() * zoomFactor));
point.setY(static_cast<int>(point.y() * zoomFactor));
result = frame->eventHandler()->hitTestResultAtPoint(point, false);
}
if (!result.innerNonSharedNode())
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment