Bug 20438

Summary: WebViewWin: WebView::handleContextMenuEvent should use Frame::firstRectForRange
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: aroben, hyatt
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   

Description Eric Seidel (no email) 2008-08-18 17:21:24 PDT
The current implementation is a lame copy:

bool WebView::handleContextMenuEvent(WPARAM wParam, LPARAM lParam)

// Calculate the rect of the first line of the selection (cribbed from -[WebCoreFrameBridge firstRectForDOMRange:]).

Of course the fact that firstRectForRange is on Frame is lame to begin with (and I believe only exists for easy export purposes).