Hi,

If I get nsIDOMCSSStyleDeclaration* from calling GetComputedStyle(),
how can I get a pointer to nsComputedDOMStyle?
I need a pointer to nsComputedDOMStyle so that I can call the
function  GetBackgroundColor().

Thank you for any tips.

  nsIDOMElement* domElement;
 nsCOMPtr<nsIDOMViewCSS> defaultCSSView;
  nsCOMPtr<nsIDOMCSSStyleDeclaration> computedStyle;


// Get the nsIDOMCSSStyleDeclaration using GetComputedStyle. How can I
get nsComputedDOMStyle*?
// I need to get nsComputedDOMStyle* to call
GetBackgroundColor(getter_AddRefs(cssValue));

          defaultCSSView->GetComputedStyle(domElement,
                                           EmptyString(),
                                           getter_AddRefs(computedStyle));
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to