On Dec 9, 2008, at 10:19 PM, ying lcs wrote:

Hi,

Can you please point me to the part of Webkit rendering code where it
does text wrapping?
for example , how does it determine when to break a paragraph into
multiple lines of text?

Thank you.

Line layout is implemented in WebCore/rendering/bidi.cpp. The method RenderBlock::findNextLineBreak() advances through the render tree, measuring text runs as necessary, and returns the line break position.
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to