[webkit-dev] How does WebKit draw an underline when an anchor has the mouse focus?

Ariya Hidayat ariya.hidayat at trolltech.com
Fri Dec 12 00:49:38 PST 2008


> Can you please point me to the code where webkit figures out how many
> lines it needs to draw (1 line for each line of text) and how long of
> each line need to be drawn.

Usually this is something you would figure out by yourself by following the 
source code. For example: create a simple test case, put a breakpoint in 
GraphicsContext::drawLine() function, and then see the backtrace.



-- 
Ariya Hidayat, Software Engineer
Qt Software, Nokia Devices R&D


More information about the webkit-dev mailing list