Changeset 82912 in webkit


Ignore:
Timestamp:
Apr 5, 2011 1:12:11 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-05 John Mellor <johnme@chromium.org>

Reviewed by Darin Fisher.

[chromium] Minor cleanup: simplify WebFrameImpl by using contentsToWindow instead of convertToContainingWindow.
https://bugs.webkit.org/show_bug.cgi?id=55681

  • src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::find): (WebKit::WebFrameImpl::scopeStringMatches):
Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r82910 r82912  
     12011-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
    1122011-04-05  Adam Barth  <abarth@webkit.org>
    213
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp

    r82164 r82912  
    14831483            }
    14841484            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);
    14911487            }
    14921488        }
     
    16251621
    16261622                // Notify browser of new location for the selected rectangle.
    1627                 resultBounds.move(-frameView()->scrollOffset().width(),
    1628                                   -frameView()->scrollOffset().height());
    16291623                reportFindInPageSelection(
    1630                     frame()->view()->convertToContainingWindow(resultBounds),
     1624                    frameView()->contentsToWindow(resultBounds),
    16311625                    m_activeMatchIndex + 1,
    16321626                    identifier);
Note: See TracChangeset for help on using the changeset viewer.