Changeset 248977 in webkit
- Timestamp:
- Aug 21, 2019, 5:06:38 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/scrolling/ios/autoscroll-input-when-very-zoomed-expected.txt (added)
-
LayoutTests/fast/scrolling/ios/autoscroll-input-when-very-zoomed.html (added)
-
LayoutTests/resources/ui-helper.js (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderLayer.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r248974 r248977 1 2019-08-21 Megan Gardner <megan_gardner@apple.com> 2 3 Do not adjust viewport if editing selection is already visible 4 https://bugs.webkit.org/show_bug.cgi?id=200907 5 <rdar://problem/53903417> 6 7 Reviewed by Simon Fraser. 8 9 * fast/scrolling/ios/autoscroll-input-when-very-zoomed-expected.txt: Added. 10 * fast/scrolling/ios/autoscroll-input-when-very-zoomed.html: Added. 11 * resources/ui-helper.js: 12 (window.UIHelper.immediateZoomToScale): 13 1 14 2019-08-21 Tim Horton <timothy_horton@apple.com> 2 15 -
trunk/LayoutTests/resources/ui-helper.js
r248433 r248977 709 709 } 710 710 711 static immediateZoomToScale(scale) 712 { 713 const uiScript = `uiController.immediateZoomToScale(${scale})`; 714 return new Promise(resolve => testRunner.runUIScript(uiScript, resolve)); 715 } 716 711 717 static typeCharacter(characterString) 712 718 { -
trunk/Source/WebCore/ChangeLog
r248974 r248977 1 2019-08-21 Megan Gardner <megan_gardner@apple.com> 2 3 Do not adjust viewport if editing selection is already visible 4 https://bugs.webkit.org/show_bug.cgi?id=200907 5 <rdar://problem/53903417> 6 7 Reviewed by Simon Fraser. 8 9 Test: fast/scrolling/ios/autoscroll-input-when-very-zoomed.html 10 11 Currently due to scrolling being mostly handled by integers, we are getting 12 issues with rounding errors when trying to adjust the viewport while 13 editing text when we are significantly zoomed in. The real fix would be to 14 start dealing with scrolling with floats/doubles, but until such time, 15 we should early out of adjusting selections that we are certain are currently 16 visible. 17 18 * rendering/RenderLayer.cpp: 19 (WebCore::RenderLayer::scrollRectToVisible): 20 1 21 2019-08-21 Tim Horton <timothy_horton@apple.com> 2 22 -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r248846 r248977 2702 2702 2703 2703 LayoutRect revealRect = getRectToExpose(viewRect, targetRect, insideFixed, options.alignX, options.alignY); 2704 ScrollOffset clampedScrollPosition = roundedIntPoint(revealRect.location()).constrainedBetween(minScrollPosition, maxScrollPosition); 2705 frameView.setScrollPosition(clampedScrollPosition); 2704 // Avoid scrolling to the rounded value of revealRect.location() if we don't actually need to scroll 2705 if (revealRect != viewRect) { 2706 ScrollOffset clampedScrollPosition = roundedIntPoint(revealRect.location()).constrainedBetween(minScrollPosition, maxScrollPosition); 2707 frameView.setScrollPosition(clampedScrollPosition); 2708 } 2706 2709 2707 2710 // This is the outermost view of a web page, so after scrolling this view we
Note:
See TracChangeset
for help on using the changeset viewer.