[webkit-help] How does text node/anchor of a page get painted?

Ariya Hidayat ariya.hidayat at gmail.com
Sun Jan 10 23:35:43 PST 2010


> Can you please tell me how does text/anchor of a page get painted?
> I assume each text node and each anchor will be represented by a
> RenderText class.
>
> But the paint() method of RenderText is not reached?
>
>  virtual void paint(PaintInfo&, int, int) { ASSERT_NOT_REACHED(); }
>
> Can you please tell me what classes are used to represent the text
> node and each anchor? And how does it get painted on screen?

Did you have a look at InlineBox, InlineRunBox, and InlineTextBox? If
you start analyzing these classes, you will get answers to your
questions. Another trick: put your debugger to stop at
GraphicsContext::drawText() function and check the stack trace.




-- 
Ariya Hidayat
http://www.linkedin.com/in/ariyahidayat


More information about the webkit-help mailing list