Changeset 251948 in webkit


Ignore:
Timestamp:
Nov 1, 2019 3:16:29 PM (4 years ago)
Author:
BJ Burg
Message:

REGRESSION(r248696): Element Click on Mac is adding an extra page topContentInsets to y-coordinate
https://bugs.webkit.org/show_bug.cgi?id=203765
<rdar://problem/56014369>

Reviewed by Devin Rousso.

  • UIProcess/Automation/mac/WebAutomationSessionMac.mm:

(WebKit::WebAutomationSession::platformSimulateMouseInteraction):
The topContentInsets is accounted for by rootViewToWindow(), so don't add it in manually.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r251935 r251948  
     12019-11-01  Brian Burg  <bburg@apple.com>
     2
     3        REGRESSION(r248696): Element Click on Mac is adding an extra page topContentInsets to y-coordinate
     4        https://bugs.webkit.org/show_bug.cgi?id=203765
     5        <rdar://problem/56014369>
     6
     7        Reviewed by Devin Rousso.
     8
     9        * UIProcess/Automation/mac/WebAutomationSessionMac.mm:
     10        (WebKit::WebAutomationSession::platformSimulateMouseInteraction):
     11        The topContentInsets is accounted for by rootViewToWindow(), so don't add it in manually.
     12
    1132019-11-01  Per Arne Vollan  <pvollan@apple.com>
    214
  • trunk/Source/WebKit/UIProcess/Automation/mac/WebAutomationSessionMac.mm

    r249275 r251948  
    138138    IntRect windowRect;
    139139
    140     IntPoint locationInView = WebCore::IntPoint(locationInViewport.x(), locationInViewport.y() + page.topContentInset());
     140    IntPoint locationInView = WebCore::IntPoint(locationInViewport.x(), locationInViewport.y());
    141141    page.rootViewToWindow(IntRect(locationInView, IntSize()), windowRect);
    142142    IntPoint locationInWindow = windowRect.location();
Note: See TracChangeset for help on using the changeset viewer.