RESOLVED FIXED 144644
[iOS] Scroll snap points trigger reentrant layout
https://bugs.webkit.org/show_bug.cgi?id=144644
Summary [iOS] Scroll snap points trigger reentrant layout
Brent Fulgham
Reported 2015-05-05 16:07:06 PDT
Created attachment 252417 [details] Simple test case that crashes on Debug iOS builds The attached test case triggers a crash in the WebProcess in debug builds, because it is attempting to trigger layout while in the middle of performing the initial layout. This bad behavior was caused by the improper use of 'offsetLeft' and 'offsetTop' in the iOS code path for handling scroll snap-points. Instead, it should have just used the same code path as OS X. Apparently, the original author of that code had the misapprehension that the RenderBox::localToContainerPoint method did not work properly under iOS, which is certainly not true (at least today). The fix here is to delete the bad iOS-only code path and use the standard drawing code.
Attachments
Simple test case that crashes on Debug iOS builds (2.50 KB, text/html)
2015-05-05 16:07 PDT, Brent Fulgham
no flags
Patch (2.48 KB, patch)
2015-05-05 16:10 PDT, Brent Fulgham
simon.fraser: review+
Brent Fulgham
Comment 1 2015-05-05 16:07:33 PDT
Brent Fulgham
Comment 2 2015-05-05 16:10:39 PDT
Brent Fulgham
Comment 3 2015-05-05 16:36:58 PDT
Note You need to log in before you can comment on or make changes to this bug.