The resizer should have native theme capability, so that it can be used in other places besides a window, for example for bug 167951.
There's an existing patch in bug 363757.
That patch seems to just draw the resizer manually, whereas I've using native growbox drawing.
Created attachment 394554 [details] [diff] [review] something like this rtl resizers don't seem to actually be drawn as such. I think the direction argument is just ignored. But we'll see how this works. mstange, am I right in that this shouldn't impact the normal window resizer?
(In reply to comment #4) > rtl resizers don't seem to actually be drawn as such. I think the direction > argument is just ignored. Yeah, Mac native theming doesn't care about RTL at all, it seems. Ehsan hit the same problem in bug 492217. > mstange, am I right in that this shouldn't impact the normal window resizer? At least as long as you don't put a xul resizer under the native resizer ;) xul.css sets display:none on .statusbar-resizerpanel, but there might be other xul resizers outside of the statusbar somewhere in our XUL code - do you know of any occurrences?
Ah, even if there are other resizers they won't be visible because we don't set -moz-appearance: resizer on them. So yeah, this won't impact the normal resizer at all.
Ignore my last comment. Your patch sets -moz-appearance: resizer.
(In reply to comment #7) > Ignore my last comment. Your patch sets -moz-appearance: resizer. Markus, so do you think this patch is ok?
Comment on attachment 394554 [details] [diff] [review] something like this Yes, I think this patch is great, with some minor adjustments: - I think you should remove the RTL check, since it doesn't have any effect. - You should probably also initialize the drawInfo's version field (to 0) in order to avoid UMR warnings like in bug 479716.
Markus, to support rtl should we draw the native resizer in reverse, or draw someting manually?
See what works ;-) IIRC HITheme doesn't really respect the transformation that you push to the context, so you might have to draw into a buffer and mirror that one (similar to what's done for scrollbars). Maybe try both and see what produces less code? ;-)