Changeset 82912 in webkit
- Timestamp:
- Apr 5, 2011 1:12:11 AM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r82910 r82912 1 2011-04-05 John Mellor <johnme@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 [chromium] Minor cleanup: simplify WebFrameImpl by using contentsToWindow instead of convertToContainingWindow. 6 https://bugs.webkit.org/show_bug.cgi?id=55681 7 8 * src/WebFrameImpl.cpp: 9 (WebKit::WebFrameImpl::find): 10 (WebKit::WebFrameImpl::scopeStringMatches): 11 1 12 2011-04-05 Adam Barth <abarth@webkit.org> 2 13 -
trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp
r82164 r82912 1483 1483 } 1484 1484 if (selectionRect) { 1485 WebRect rect = frame()->view()->convertToContainingWindow(currSelectionRect); 1486 rect.x -= frameView()->scrollOffset().width(); 1487 rect.y -= frameView()->scrollOffset().height(); 1488 *selectionRect = rect; 1489 1490 reportFindInPageSelection(rect, m_activeMatchIndex + 1, identifier); 1485 *selectionRect = frameView()->contentsToWindow(currSelectionRect); 1486 reportFindInPageSelection(*selectionRect, m_activeMatchIndex + 1, identifier); 1491 1487 } 1492 1488 } … … 1625 1621 1626 1622 // Notify browser of new location for the selected rectangle. 1627 resultBounds.move(-frameView()->scrollOffset().width(),1628 -frameView()->scrollOffset().height());1629 1623 reportFindInPageSelection( 1630 frame ()->view()->convertToContainingWindow(resultBounds),1624 frameView()->contentsToWindow(resultBounds), 1631 1625 m_activeMatchIndex + 1, 1632 1626 identifier);
Note: See TracChangeset
for help on using the changeset viewer.