[prev in list] [next in list] [prev in thread] [next in thread]
List: mozilla-layout
Subject: Re: Need help in using GetCSSStyleRules() of inDOMUtils
From: smaug <smaug () welho ! com>
Date: 2008-11-05 12:12:47
Message-ID: HIidnQB0Jp5dEIzUnZ2dnUVZ_obinZ2d () mozilla ! org
[Download RAW message or body]
On 11/02/2008 08:54 PM, silverburgh.meryl@gmail.com wrote:
>
> inDOMUtils domUtils;
This looks bad. You're using reference counted object as a stack object.
That is almost always evil.
DOMUtils is a service and you should use it a as a service.
nsCOMPtr<inIDOMUtils> domUtils = do_GetService("@mozilla.org/inspector/dom-utils;1");
Maybe that fixes the problem. Maybe.
_______________________________________________
dev-tech-layout mailing list
dev-tech-layout@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-layout
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic