Re: [webkit-dev] On/Off selection gap painting during the text selection
On 03/05/16 17:12, Gyuyoung Kim wrote: > In second issue case, although it looks there is no critical issue with > new layout methods yet > I think I need to check it further. But the issues won't appear on port > which uses gaps painting. Maybe I didn't explain myself properly, but the issue with new layout methods is happening when you paint the selection gaps, if you don't paint them the issue disappears. A very simple example with Flexbox: first second third fourth Try to select from "first" to "third", with selection gaps painting the final result is really bad. Without gaps painting it should be better. You can check it live here: http://jsbin.com/getafojevu/1/edit Bye, Rego ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
Re: [webkit-dev] On/Off selection gap painting during the text selection
Hi Rego, Thank you for pointing issues out when removing gaps painting. The issues probably heads up when gaps painting is disabled. In newline issue case, I'm able to refer to the chrome's fix. Let me check it. In second issue case, although it looks there is no critical issue with new layout methods yet I think I need to check it further. But the issues won't appear on port which uses gaps painting. gyuyoung. On Tue, May 3, 2016 at 10:58 PM, Manuel Rego Casasnovaswrote: > Hi, > > On 03/05/16 15:24, Gyuyoung Kim wrote: > > I upload a patch to add a preference API in order to enable/disable the > > selection gap painting feature. > > BTW, this has been removed from Chrome too past year: > > https://groups.google.com/a/chromium.org/d/msg/blink-dev/6Iu5oIbAGbI/PsJlNvJPhfMJ > > Note that in the discussion they pointed to an issue that happens when > you remove gaps paining, you don't know if you've selected a newlines or > not: https://bugs.chromium.org/p/chromium/issues/detail?id=474759 > > > Add WKPreference for SelectionPaintingWithoutSelectionGaps > > https://bugs.webkit.org/show_bug.cgi?id=156900 > > As pointed out by Darin on the bug, an issue with selection gaps is what > happens with the new layout methods like Flexbox and specially Grid > Layout, where the visual order and the DOM order can be completely > different. > > My 2 cents, > Rego > ___ > webkit-dev mailing list > webkit-dev@lists.webkit.org > https://lists.webkit.org/mailman/listinfo/webkit-dev > ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev
Re: [webkit-dev] On/Off selection gap painting during the text selection
Hi, On 03/05/16 15:24, Gyuyoung Kim wrote: > I upload a patch to add a preference API in order to enable/disable the > selection gap painting feature. BTW, this has been removed from Chrome too past year: https://groups.google.com/a/chromium.org/d/msg/blink-dev/6Iu5oIbAGbI/PsJlNvJPhfMJ Note that in the discussion they pointed to an issue that happens when you remove gaps paining, you don't know if you've selected a newlines or not: https://bugs.chromium.org/p/chromium/issues/detail?id=474759 > Add WKPreference for SelectionPaintingWithoutSelectionGaps > https://bugs.webkit.org/show_bug.cgi?id=156900 As pointed out by Darin on the bug, an issue with selection gaps is what happens with the new layout methods like Flexbox and specially Grid Layout, where the visual order and the DOM order can be completely different. My 2 cents, Rego ___ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev