[webkit-dev] Need help in understanding web kit
Dan Bernstein
mitz at apple.com
Tue Dec 9 22:22:55 PST 2008
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.
More information about the webkit-dev
mailing list