Re: Bogus painting in xul-1.9.0.5/Win32

2009-01-05 Thread Grant Gayed
Hi, This is logged as https://bugzilla.mozilla.org/show_bug.cgi?id=453523 . It's not expected behaviour, because this same problem was fixed on gtk prior to the 1.9 release, see https://bugzilla.mozilla.org/show_bug.cgi?id=415789 . Grant Dmitry Dartz d...@yandex.ru wrote in message

nsCString_internal external problem?

2009-01-05 Thread 彭大伟
hi, all Now, I'm make a Xpcom-glue program, I want to use a nsDocumentEncoder to dump the DOM content. nsCOMPtrnsIDocumentEncoder encoder = do_CreateInstance(NS_DOC_ENCODER_CONTRACTID_BASE text/plain, rv); if (NS_FAILED(rv)) return rv; ...

Re: nsCString_internal external problem?

2009-01-05 Thread Boris Zbarsky
nsCString charset; nsCOMPtrnsIDocument doc = do_QueryInterface(aDocument); NS_ASSERTION(doc, Need a document); nsCString charset= doc-GetDocumentCharacterSet(); Is there a reason you're not using the DOM API here instead of the more-or-less

Re: WM_MOUSEWHEEL and focus

2009-01-05 Thread Drew
On Dec 31 2008, 3:24 pm, Drew drewt...@gmail.com wrote: I'm attempting to get the mousewheel working for my embedding browser. Here's where I'm stuck. If I set the focus on an element in a page (drop-down, textbox, or press tab to an element) I receive WM_MOUSEWHEEL events in my message

How to get the event when embedded browser close by javascript

2009-01-05 Thread sonicfly
Hi, could you guys tell me how to hook the event or notification when the embedding browser is going to be closed by javascript in the page. ___ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding

Re: How to get the event when embedded browser close by javascript

2009-01-05 Thread steve lu
sonicfly wrote: Hi, could you guys tell me how to hook the event or notification when the embedding browser is going to be closed by javascript in the page. ___ dev-embedding mailing list dev-embedding@lists.mozilla.org

Re: nsCString_internal external problem?

2009-01-05 Thread zz
Thanks, Boris! I want to dump a DOMDocument with a nsIDocumentEncoder, Originally, I use nsIDOMSerializer to serialize the DOMDocument, internally nsIDOMSerializer use nsIDocumentEncoder with nsXMLContentSerializer to serialize the DOMDocument, but Now what I want is a nsIDocumentEncoder with

Re: nsCString_internal external problem?

2009-01-05 Thread Boris Zbarsky
zz wrote: Now, I think I can implement a nsHTMLSerializer class just like nsDOMSerializer to solve this problem. By the way, which DOM API can do the same document-dump thing? There isn't one, but there _is_ one that will give you the charset. nsIDOMNSDocument has a characterSet property.

Re: nsCString_internal external problem?

2009-01-05 Thread Boris Zbarsky
zz wrote: nsCString charset; Make that nsString. Then you'll have to convert to UTF8 to get the string to pass to the encoder. so, the same nsCString_external nsAString problem. No, this is a different problem. You're passing a narrow string to a function that wants a

Re: nsCString_internal external problem?

2009-01-05 Thread zz
Yes, you are right! I changed to nsString, and use NS_ConvertUTF16toUTF8(charset), and everything goes well. Thank you very much!!! - zz Boris Zbarsky bzbar...@mit.edu ??:xogdntdt19fzdp_unz2dnuvz_hydn...@mozilla.org... zz wrote: nsCString charset; Make that nsString. Then