[webkit-help] How can I get the Image from a StyleImage

hap 497 hap497 at gmail.com
Thu Mar 18 01:10:32 PDT 2010


Hi,

I am able to get the StyleImage of my element using:

 RenderObject *o = element->renderer();
    RenderStyle* style = o->style();
 StyleImage* bgImage = style->backgroundImage();

My question is how can I get the Image being painted (the one which is
actual pass to Graphics Context)?

I see this method in StyleImage, but how can I use that? How can I
find out the IntSize which is used for painting?
  virtual Image* image(RenderObject*, const IntSize&) const = 0;

Thank you.


More information about the webkit-help mailing list