"Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> If you aren't, can you try using C++ equivalent of:
>   document.QueryInterface(nsIDOMDocumentView).defaultView.
>     getComputedStyle(node, "").display
>
> to see what it is?

I did the following :

 nsCOMPtr<nsIDOMDocumentView> pDocView = do_QueryInterface(mMainDoc);
 nsIDOMAbstractView *aDefaultView;
 pDocView->GetDefaultView(&aDefaultView);
 nsCOMPtr<nsIDOMViewCSS> cssView  = do_QueryInterface(aDefaultView);
 nsIDOMCSSStyleDeclaration *cssDecl;
 cssView->GetComputedStyle(iFrame, NS_LITERAL_STRING("") , &cssDecl);
 nsAutoString val;
 cssDecl->GetPropertyValue(NS_LITERAL_STRING("display") , val);
 const char *cval = NS_LossyConvertUCS2toASCII(val).get();

The display property value was "inline".

Thanks,
Michael.


_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to