Re: padding/margin/border/content highlighting (need platform help)

2013-08-28 Thread Robert O'Callahan
I just sent a new API proposal to www-style: http://lists.w3.org/Archives/Public/www-style/2013Aug/0605.html It's not particularly difficult to implement, but we need CSSPoint to be implemented first, and that's waiting on Jet and some WebIDL codegen changes in bug 854490. But maybe your needs are

Re: How to observe selection range within input element

2013-08-28 Thread Yuan Xulei(袁徐磊)
Hi Jim and Ehsan, Thank you. It really helps ;-) Mark also show me an example about the usage of selectionListeners, which covers the case of designMode/contentEditable. All the information you provided seems enough to solve my issue :-) Regards, Yuan On 08/28/2013 05:31 PM, Mark Capella w

Re: How to observe selection range within input element

2013-08-28 Thread Ehsan Akhgari
On 2013-08-28 12:22 PM, Jim Chen wrote: Hi Xulei, I think you can use nsISelectionPrivate::addSelectionListener [1]. You can get nsISelectionPrivate through QueryInterface on nsISelection, which you can get from nsIEditor. But note that you can only get the nsIEditor for plaintext controls, t

Re: nsIDownloadManager replaced by Downloads.jsm

2013-08-28 Thread sam foster
> if you are maintaining an add-on or a Mozilla product that interacts > with downloads, you should look into updating your code to use the new > Downloads.jsm module instead of nsIDownloadManager as soon as possible. We're currently using nsIDownloadManager in Firefox for Metro and will be wanti

Re: How to observe selection range within input element

2013-08-28 Thread Jim Chen
Hi Xulei, I think you can use nsISelectionPrivate::addSelectionListener [1]. You can get nsISelectionPrivate through QueryInterface on nsISelection, which you can get from nsIEditor. Cheers, Jim [1] http://mxr.mozilla.org/mozilla-central/source/content/base/public/nsISelectionPrivate.idl#52 On

Re: padding/margin/border/content highlighting (need platform help)

2013-08-28 Thread Paul Rouget
Robert O'Callahan wrote: > On Wed, Aug 28, 2013 at 11:02 PM, Paul Rouget wrote: > > > - is there any better way than using the computed style + > > getBoundClientRect? > > Maybe we can expose the layout info to nsIDOMWindowUtils, or maybe we can > > highlight these regions directly at the gec

Re: Review of changes to Web compat-sensitive prefs in localizations

2013-08-28 Thread Henri Sivonen
On Wed, Aug 28, 2013 at 3:46 PM, Henri Sivonen wrote: > On Wed, Aug 28, 2013 at 3:33 PM, Henri Sivonen wrote: > >> If I were starting such a research project, I'd start by testing >> hypotheses about TLD correlation with legacy encodings. The first thing I'd >> like to test would be whether it w

Re: Review of changes to Web compat-sensitive prefs in localizations

2013-08-28 Thread Henri Sivonen
On Wed, Aug 28, 2013 at 3:33 PM, Henri Sivonen wrote: > If I were starting such a research project, I'd start by testing > hypotheses about TLD correlation with legacy encodings. The first thing I'd > like to test would be whether it would be an improvement to make builds > that have Traditional

Re: Review of changes to Web compat-sensitive prefs in localizations

2013-08-28 Thread Henri Sivonen
On Wed, Aug 28, 2013 at 3:20 PM, Axel Hecht wrote: > On 8/28/13 1:12 PM, Anne van Kesteren wrote: > >> On Wednesday, February 27, 2013 12:28:43 PM UTC, Axel Hecht wrote: >> >>> That's rather orthogonal to what you're currently trying to do, but it's >>> also indicating to me that we should remove

Re: Review of changes to Web compat-sensitive prefs in localizations

2013-08-28 Thread Axel Hecht
On 8/28/13 1:12 PM, Anne van Kesteren wrote: On Wednesday, February 27, 2013 12:28:43 PM UTC, Axel Hecht wrote: That's rather orthogonal to what you're currently trying to do, but it's also indicating to me that we should remove all of those settings from intl.properties, and just leave accept-l

Re: Review of changes to Web compat-sensitive prefs in localizations

2013-08-28 Thread Henri Sivonen
On Wed, Aug 28, 2013 at 2:12 PM, Anne van Kesteren wrote: > On Wednesday, February 27, 2013 12:28:43 PM UTC, Axel Hecht wrote: > > That's rather orthogonal to what you're currently trying to do, but it's > > also indicating to me that we should remove all of those settings from > > intl.propertie

Re: padding/margin/border/content highlighting (need platform help)

2013-08-28 Thread Robert O'Callahan
On Wed, Aug 28, 2013 at 11:02 PM, Paul Rouget wrote: > - is there any better way than using the computed style + > getBoundClientRect? > Maybe we can expose the layout info to nsIDOMWindowUtils, or maybe we can > highlight these regions directly at the gecko level. > We really need bug 62635

Re: Review of changes to Web compat-sensitive prefs in localizations

2013-08-28 Thread Anne van Kesteren
On Wednesday, February 27, 2013 12:28:43 PM UTC, Axel Hecht wrote: > That's rather orthogonal to what you're currently trying to do, but it's > also indicating to me that we should remove all of those settings from > intl.properties, and just leave accept-lang, and deduce the rest. So how about

Re: On builds getting slower

2013-08-28 Thread Ted Mielczarek
On 8/28/2013 3:16 AM, Mark Hammond wrote: > On 28/08/2013 3:30 AM, Gregory Szorc wrote: > ... > > Does anyone else see this libraries-always-rebuild behavior? > > Not me - although I see just a few small ones - relevant parts of the > log: > > 5:20.54 webapprt.obj > 5:21.01 webapprt.cpp > 5:21.0

padding/margin/border/content highlighting (need platform help)

2013-08-28 Thread Paul Rouget
For the devtools, we want to show the "box model" of the selected node. Screenshot (chrome): https://bug663778.bugzilla.mozilla.org/attachment.cgi?id=538850 We use the computed style and getBoundClientRect. - bug 381328 is blocking us (computed style of margin:auto returns 0). Can anyone help?

How to observe selection range within input element

2013-08-28 Thread Yuan Xulei(袁徐磊)
Hi all, I'm implementing b2g keyboard/IME api and encounter a problem with the selection range observing. We want to monitor the cursor position or selection range changes in current input element, which is a text input field or a content editable element receiving user's input. The cursor posit

Re: On builds getting slower

2013-08-28 Thread Mark Hammond
On 28/08/2013 3:30 AM, Gregory Szorc wrote: ... > Does anyone else see this libraries-always-rebuild behavior? Not me - although I see just a few small ones - relevant parts of the log: 5:20.54 webapprt.obj 5:21.01 webapprt.cpp 5:21.01 5:21.05 webapprt-stub.exe 5:21.07 MakeNSIS v2.46-Unicod