Changeset 262861 in webkit
- Timestamp:
- Jun 10, 2020, 2:44:04 PM (6 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/ScrollView.cpp (modified) (1 diff)
-
WebCore/platform/ScrollView.h (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/UIProcess/Automation/mac/WebAutomationSessionMac.mm (modified) (1 diff)
-
WebKit/WebProcess/Automation/WebAutomationSessionProxy.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r262857 r262861 1 2020-06-10 Brian Burg <bburg@apple.com> 2 3 WebDriver on non-iOS ports cannot perform ActionChain which has scrolling down to the element and click it 4 https://bugs.webkit.org/show_bug.cgi?id=208232 5 <rdar://problem/59859491> 6 7 Reviewed by Devin Rousso. 8 9 * platform/ScrollView.h: 10 * platform/ScrollView.cpp: 11 (WebCore::ScrollView::rootViewToContents const): 12 Create a version of this function that works with FloatPoint. 13 1 14 2020-06-10 Commit Queue <commit-queue@webkit.org> 2 15 -
trunk/Source/WebCore/platform/ScrollView.cpp
r261874 r262861 945 945 } 946 946 947 FloatPoint ScrollView::rootViewToContents(const FloatPoint& rootViewPoint) const 948 { 949 return viewToContents(convertFromRootView(rootViewPoint)); 950 } 951 947 952 IntPoint ScrollView::rootViewToContents(const IntPoint& rootViewPoint) const 948 953 { -
trunk/Source/WebCore/platform/ScrollView.h
r259846 r262861 280 280 bool scrollbarsSuppressed() const { return m_scrollbarsSuppressed; } 281 281 282 WEBCORE_EXPORT FloatPoint rootViewToContents(const FloatPoint&) const; 282 283 WEBCORE_EXPORT IntPoint rootViewToContents(const IntPoint&) const; 283 284 WEBCORE_EXPORT IntPoint contentsToRootView(const IntPoint&) const; -
trunk/Source/WebKit/ChangeLog
r262860 r262861 1 2020-06-10 Brian Burg <bburg@apple.com> 2 3 WebDriver on non-iOS ports cannot perform ActionChain which has scrolling down to the element and click it 4 https://bugs.webkit.org/show_bug.cgi?id=208232 5 <rdar://problem/59859491> 6 7 Reviewed by Devin Rousso. 8 9 * UIProcess/Automation/mac/WebAutomationSessionMac.mm: 10 (WebKit::WebAutomationSession::platformSimulateMouseInteraction): 11 The provided coordinates are in LayoutViewport coordinate system, which does 12 not take topContentInset into account. Add back in the topContentInset 13 when translating to flipped window coordinates. 14 15 * WebProcess/Automation/WebAutomationSessionProxy.cpp: 16 (WebKit::WebAutomationSessionProxy::computeElementLayout): 17 The calculations of element bounds and IVCP have an incorrect handling of 18 root coordinates as contents/absolute coordinates. Add the missing conversion. 19 1 20 2020-06-10 Brent Fulgham <bfulgham@apple.com> 2 21 -
trunk/Source/WebKit/UIProcess/Automation/mac/WebAutomationSessionMac.mm
r262815 r262861 141 141 IntRect windowRect; 142 142 143 IntPoint locationInView = WebCore::IntPoint(locationInViewport.x(), locationInViewport.y());143 IntPoint locationInView = locationInViewport + IntPoint(0, page.topContentInset()); 144 144 page.rootViewToWindow(IntRect(locationInView, IntSize()), windowRect); 145 145 IntPoint locationInWindow = windowRect.location(); -
trunk/Source/WebKit/WebProcess/Automation/WebAutomationSessionProxy.cpp
r260653 r262861 689 689 break; 690 690 case CoordinateSystem::LayoutViewport: 691 resultElementBounds = enclosingIntRect(mainView->absoluteToLayoutViewportRect( elementBoundsInRootCoordinates));691 resultElementBounds = enclosingIntRect(mainView->absoluteToLayoutViewportRect(mainView->rootViewToContents(elementBoundsInRootCoordinates))); 692 692 break; 693 693 } … … 743 743 switch (coordinateSystem) { 744 744 case CoordinateSystem::Page: 745 resultInViewCenterPoint = roundedIntPoint(mainView->absoluteToDocumentPoint( inViewCenterPointInRootCoordinates));745 resultInViewCenterPoint = roundedIntPoint(mainView->absoluteToDocumentPoint(mainView->rootViewToContents(inViewCenterPointInRootCoordinates))); 746 746 break; 747 747 case CoordinateSystem::LayoutViewport: 748 resultInViewCenterPoint = roundedIntPoint(mainView->absoluteToLayoutViewportPoint( inViewCenterPointInRootCoordinates));748 resultInViewCenterPoint = roundedIntPoint(mainView->absoluteToLayoutViewportPoint(mainView->rootViewToContents(inViewCenterPointInRootCoordinates))); 749 749 break; 750 750 }
Note:
See TracChangeset
for help on using the changeset viewer.