DescriptionFix long-press image selection inside editables.
This fixes the regression introduced in http://crrev.com/1668453002 that
contenteditable images were no longer selectable with long-press, and
also fixes the longer-standing issue that long-press selection only worked
on the left side of images.
I also removed unnecessary #if OS(ANDROID), which allows the long-press behavior
to work similarly on other touch platforms and lets us run the tests on
all platforms.
BUG=597506, 585020
Committed: https://crrev.com/1fa55a60390ac8fa93a336c666fe01c671534833
Cr-Commit-Position: refs/heads/master@{#385360}
Patch Set 1 #Patch Set 2 : Add test and take narrower approach to LayoutReplaced problem #Patch Set 3 : Actually use adjustedHitTestResult #
Total comments: 6
Patch Set 4 : Fix layout tests by adding isLongPress argument #Patch Set 5 : Apply code review nits #Patch Set 6 : Bring back containsOnlyWhitespace to address test flake #
Total comments: 3
Patch Set 7 : Add enum class #Patch Set 8 : Disable Mac-only failure (Mac doesn't support long-press anyway) #
Messages
Total messages: 30 (13 generated)
|