Re: Text rendering with non-square pixels

2005-12-13 Thread Ben Hutchings
Jon Smirl <[EMAIL PROTECTED]> wrote: > On 12/13/05, Ben Hutchings <[EMAIL PROTECTED]> wrote: >> Jon Smirl <[EMAIL PROTECTED]> wrote: >> > On 12/13/05, Ben Hutchings <[EMAIL PROTECTED]> wrote: >> >> I wrote: >> >> > Is there any

Re: Text rendering with non-square pixels

2005-12-13 Thread Ben Hutchings
Jon Smirl <[EMAIL PROTECTED]> wrote: > On 12/13/05, Ben Hutchings <[EMAIL PROTECTED]> wrote: >> I wrote: >> > Is there any way to tell Mozilla that the screen resolution >> > differs in the two dimensions, or at least to adjust the proportions >>

Re: Text rendering with non-square pixels

2005-12-13 Thread Ben Hutchings
I wrote: > Is there any way to tell Mozilla that the screen resolution > differs in the two dimensions, or at least to adjust the proportions > of the fonts it uses to compensate for this? Should I take the deafening silence as a "no"? -- Ben Hutchings Klipstein's 4t

Re: How to wait for everything to load?

2005-12-13 Thread Ben Hutchings
nd_loads=true - but this was added in Mozilla 1.8. Is there any other approach I could take now using Mozilla 1.7.x? -- Ben Hutchings Klipstein's 4th Law of Prototyping and Production: A fail-safe circuit will destroy others. __

Text rendering with non-square pixels

2005-12-07 Thread Ben Hutchings
ensate for this? -- Ben Hutchings Every program is either trivial or else contains at least one bug ___ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://mail.mozilla.org/listinfo/mozilla-embedding

How to wait for everything to load?

2005-12-07 Thread Ben Hutchings
indow_update_) { // Here I start working on the page. } How can I change this code to wait for background images too? The full source code can be downloaded from the following URL, if you wish to look into this further. [1] http://womble.decadentplace.org.uk/softwa

Re: Trapping all gecko errors

2005-11-07 Thread Ben Hutchings
; Maybe somehow if you implemented enough classes though in > a custom browser, you could fool Mozilla into thinking there > was a window there when there wasn't. I'm using a "headless" X server (Xvfb) as a way of running Mozilla without a window. Have a look at the Fr

Re: Running event handlers

2005-10-31 Thread Ben Hutchings
by a class member, then changed the function to save its state and return when a link state change starts a request and pick up where it left off when that completes. That seems to have worked, though it's ugly at the moment. -- Ben Hutchings Design a system any fool can use, and only a fool w

Re: Running event handlers

2005-10-31 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> I assume you mean PL_ProcessPendingEvents? > > Yes. > >> That is not being called. > > Does it usually get called when you spin the GTK event loop? Yes, it gets called 3 times during loading o

Re: Running event handlers

2005-10-30 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> As it is, the loop never exits. My actual code for >> on_net_state_change includes some output statments which report its >> arguments. They show that it is never called with the REQUEST and >>

Re: Running event handlers

2005-10-30 Thread Ben Hutchings
gs once this loop begins. There are matching numbers of calls with REQUEST|START and REQUEST|STOP flags during the initial page load, so that pending_req_count_ is equal to zero after a DispatchEvent() call that doesn't kick off an image load. -- Ben Hutchings Never attribute to conspiracy wh

Re: Running event handlers

2005-10-30 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> Surely I'd need to find the document first, and that's not possible >> until it has at least started loading, which I would detect in the >> same way. > > Fair enough. You can actually se

Re: Running event handlers

2005-10-30 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> I'm using GtkMozEmbed and handling net_state_all signals (I think >> those correspond to nsIWebProgressListener::OnStateChange) in order to >> tell when pages have finished loading. > > This

Re: Running event handlers

2005-10-30 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> Then I guess the problem I'm having is that changes to images (which >> are what I'm hoping to trigger) are asynchronous... > > Yes, changes to images are typically asynchronous. In fact,

Re: Running event handlers

2005-10-30 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> I'm faking up mouse events and dispatching them through the DOM. So >> far as I can tell, calling dispatchEvent on a node causes the event >> handlers to run asynchronously > > dispatchE

Running event handlers

2005-10-30 Thread Ben Hutchings
loop until the event has been handled? -- Ben Hutchings Never attribute to conspiracy what can adequately be explained by stupidity. ___ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://mail.mozilla.org/listinfo/mozilla-embedding

Re: Finding link extents (was Re: Setting default stylesheets)

2005-10-27 Thread Ben Hutchings
On 2005-10-27, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> The extents of the content of the link. > > You mean the smallest rectangle that contains all the layout objects > corresponding to descendants of the link DOM node in the DOM? I suppose

Re: Finding link extents (was Re: Setting default stylesheets)

2005-10-27 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> Currently I'm using nsIDOMNSDocument::GetBoxObjectFor to find the >> extents of each link before scanning for changes, but this doesn't >> always provide the correct extents for my purposes. >

Finding link extents (was Re: Setting default stylesheets)

2005-10-27 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> I don't suppose you can help with my other query about link extents? > > I'm not sure I saw this query. Then I'll post it again: I'm working on an application that uses Mozilla to rende

Re: Setting default stylesheets

2005-10-27 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> Something I don't understand is that I apparently have to do this for >> each page. How do Seamonkey and Firefox set stylesheets to be applied >> to all pages > > There are hardcoded URIs to

Re: Setting default stylesheets

2005-10-25 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> It's 1.7.8. > > OK. Then there is no really clean way to do it... You can try creating a > CSSLoader (nsICSSLoader.h) and using it to load sheets, then using > SetAgentStyleSheets() on the pressh

Re: Setting default stylesheets

2005-10-25 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> Debian's mozilla-dev >> package doesn't include the IDL file. Could this be considered a >> packaging bug? > > Hmm... Which version are they packaging? This interface did not exist in

Re: Setting default stylesheets

2005-10-24 Thread Ben Hutchings
Boris, you've been very helpful, but I'm afraid I have more questions for you. Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> Oddly I can only find an IDL file for that, not a header file > > The nsIStyleSheetService.h header is generated via xpi

Re: Setting default stylesheets

2005-10-24 Thread Ben Hutchings
Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Ben Hutchings wrote: >> It's not clear to me how to override the default stylesheet(s) when >> embedding Mozilla. > > You can use nsIStyleSheetService to load additional style sheets. Oddly I can only find an IDL file

Setting default stylesheets

2005-10-24 Thread Ben Hutchings
I do that? -- Ben Hutchings For every complex problem there is a solution that is simple, neat, and wrong. ___ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://mail.mozilla.org/listinfo/mozilla-embedding

Re: Mozilla/gecko headless what's the status ?

2005-10-24 Thread Ben Hutchings
t; > Is there a similiar feature in the standard Mozilla code line ? I have done this in a rather gross way on Unix by spawning a headless X server (Xvfb). My code isn't ready for release yet but it shouldn't be that hard to reimplement. Ben. -- Ben Hutchings For every complex problem the

Re: Gtkmozembed question

2005-10-24 Thread Ben Hutchings
b/mozilla The appropriate directory may vary, of course. Perhaps you can try to extract that from the output of pkg-config. If you are installing private copies of the Mozilla libraries then specify the directory where you will install them. Ben. -- Ben Hutchings For every complex problem there is