Changeset 227855 in webkit
- Timestamp:
- Jan 30, 2018, 2:16:08 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/forms/ios/ipad/select-form-run-twice-expected.txt (added)
-
LayoutTests/fast/forms/ios/ipad/select-form-run-twice.html (added)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/UIProcess/ios/WKContentViewInteraction.h (modified) (1 diff)
-
Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r227841 r227855 1 2018-01-30 Megan Gardner <megan_gardner@apple.com> 2 3 Make preserve and restore focus more likely to be symmetrical 4 https://bugs.webkit.org/show_bug.cgi?id=182264 5 6 Reviewed by Tim Horton. 7 8 Added new test to verify that opening a selection form twice works. 9 10 * fast/forms/ios/ipad/select-form-run-twice-expected.txt: Added. 11 * fast/forms/ios/ipad/select-form-run-twice.html: Added. 12 1 13 2018-01-30 Dean Jackson <dino@apple.com> 2 14 -
trunk/Source/WebKit/ChangeLog
r227790 r227855 1 2018-01-30 Megan Gardner <megan_gardner@apple.com> 2 3 Make preserve and restore focus more likely to be symmetrical 4 https://bugs.webkit.org/show_bug.cgi?id=182264 5 <rdar://problem/36948473> 6 7 Reviewed by Tim Horton. 8 9 Keep a stack of if we actually increment the focusState, so that 10 changes to the web content do not result in asymmetric decrements to the focus state. 11 To work around problems associated with <rdar://problem/37000122>. 12 13 * UIProcess/ios/WKContentViewInteraction.h: 14 * UIProcess/ios/WKContentViewInteraction.mm: 15 (-[WKContentView _restoreFocusWithToken:]): 16 (-[WKContentView _preserveFocusWithToken:destructively:]): 17 1 18 2018-01-30 Brent Fulgham <bfulgham@apple.com> 2 19 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h
r227377 r227855 172 172 RetainPtr<UIGestureRecognizer> _previewGestureRecognizer; 173 173 RetainPtr<UIGestureRecognizer> _previewSecondaryGestureRecognizer; 174 Vector<bool> _focusStateStack; 174 175 #if HAVE(LINK_PREVIEW) 175 176 RetainPtr<UIPreviewItemController> _previewItemController; -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r227710 r227855 4170 4170 - (void)_restoreFocusWithToken:(id <NSCopying, NSSecureCoding>)token 4171 4171 { 4172 if (!_inputPeripheral) 4172 ASSERT(!_focusStateStack.isEmpty()); 4173 4174 if (_focusStateStack.takeLast()) { 4175 ASSERT(_webView->_activeFocusedStateRetainCount); 4173 4176 --_webView->_activeFocusedStateRetainCount; 4177 } 4174 4178 } 4175 4179 4176 4180 - (void)_preserveFocusWithToken:(id <NSCopying, NSSecureCoding>)token destructively:(BOOL)destructively 4177 4181 { 4178 if (!_inputPeripheral) 4182 if (!_inputPeripheral) { 4179 4183 ++_webView->_activeFocusedStateRetainCount; 4184 _focusStateStack.append(true); 4185 } else 4186 _focusStateStack.append(false); 4180 4187 } 4181 4188
Note:
See TracChangeset
for help on using the changeset viewer.