Change in Gecko impacting Composer
By glazou on Monday 20 September 2004, 11:29 - Mozilla - Permalink
Take a look at the following chunk of code, where doc is an HTML document:
// get the root content
nsCOMPtr<nsIDOMNSHTMLElement> nsElement = do_QueryInterface(doc->GetRootContent());
if (!nsElement) {return NS_ERROR_NULL_POINTER; }
// let's get the size of the document
PRInt32 w, h;
nsElement->GetOffsetWidth(&w);
nsElement->GetOffsetHeight(&h);
In 1.7.1, w and h are >= than the size of the viewport. In the trunk, they are not max'ed any longer with the viewport's size. That is probably the cause of this crasher and that's also why you don't see the tooltip when you resize a positioned object using the resizers at the bottom of the element. Can someone tell me why it changed ?
Update: this is now bug 260498

Comments
You have a precise timeframe for the regression ? Don't know if you saw it, but the concerned file has happily reached revision number 548 in cvs ...
The fix bug 72747 sounds one of the most suspicious in the recent changes, from it's description, and not a real look at the code ...
> Can someone tell me why it changed ?
Because the old size of the root element was wrong. See bug bug
241694, bug 15405, bug 57906.
Note that this changed at the end of April.... Is the trunk really getting that little testing?