RESOLVED FIXED 12441
SVG text selection should restrict auto-select on double and triple click
https://bugs.webkit.org/show_bug.cgi?id=12441
Summary SVG text selection should restrict auto-select on double and triple click
Rob Buis
Reported 2007-01-27 07:07:18 PST
The current way of auto-selecting when double or triple clicking svg elements makes no sense for objects other than pure text.
Attachments
First attempt (224.16 KB, patch)
2007-01-27 08:53 PST, Rob Buis
darin: review-
without SVG_SUPPORT usage (225.63 KB, patch)
2007-01-29 02:23 PST, Rob Buis
darin: review-
Rob Buis
Comment 1 2007-01-27 08:53:16 PST
Created attachment 12711 [details] First attempt This patch should do the trick. I played around with -webkit-user-select in svg.css, but that doesnt seem to do what we want here. Cheers, Rob.
Rob Buis
Comment 2 2007-01-27 15:14:13 PST
*** Bug 11684 has been marked as a duplicate of this bug. ***
Darin Adler
Comment 3 2007-01-28 18:07:52 PST
Comment on attachment 12711 [details] First attempt I'd like this to be done without adding ifdef SVG_SUPPORT to these functions, even if that means adding a new virtual function to RenderObject.
Rob Buis
Comment 4 2007-01-29 02:23:24 PST
Created attachment 12735 [details] without SVG_SUPPORT usage This patches uses a new virtual method to check whether the render object can be part of a double or triple-click selection. Cheers, Rob.
Darin Adler
Comment 5 2007-01-29 09:04:06 PST
Comment on attachment 12735 [details] without SVG_SUPPORT usage Looks great! Two problems: 1) the change to EventHandler.cpp seems to be missing from this patch although it's mentioned in the change log 2) the declaration of canMultiSelect in RenderSVGImage seems to be indented incorrectly
Darin Adler
Comment 6 2007-01-29 09:05:23 PST
I also suggest making the comment say just "object" instead of "render object". Finally, this *could* be done by introducing a special value for -webkit-user-select that means "single click only". I'm not sure that would be better, but it might be worth considering.
Eric Seidel (no email)
Comment 7 2007-12-27 02:14:59 PST
Looks like this mostly-done patch has been forgotten.
Nikolas Zimmermann
Comment 8 2010-07-01 05:53:32 PDT
Rob, is this still valid?
Rob Buis
Comment 9 2010-07-01 06:40:19 PDT
Hello Niko, (In reply to comment #8) > Rob, is this still valid? I forgot the original behaviour, but right now selection behaves the same for svg text as for html text, which I suppose can be explained by your recent text patch(es). So I think this can be closed. Cheers, Rob.
Rob Buis
Comment 10 2010-07-02 00:04:17 PDT
Likely fixed by WldFox recent text work.
Note You need to log in before you can comment on or make changes to this bug.