2011-04-06 Levi Weintraub <leviw@chromium.org>
Reviewed by Ryosuke Niwa. Add member functions for determining line/paragraph separation to InlineIterator https://bugs.webkit.org/show_bug.cgi?id=57938 Adding atTextParagraphSeparator and atParagraphSeparator inline convenience functions to InlineIterator, where it makes far more sense for them to be. Also moving shouldPreserveNewline to RenderObject and renaming it preservesNewline. No new tests as this provides no new functionality. * rendering/InlineIterator.h: (WebCore::InlineIterator::atTextParagraphSeparator): (WebCore::InlineIterator::atParagraphSeparator): * rendering/RenderBlockLineLayout.cpp: (WebCore::RenderBlock::requiresLineBox): (WebCore::RenderBlock::findNextLineBreak): * rendering/RenderObject.h: (WebCore::RenderObject::preservesNewline): git-svn-id: svn://svn.chromium.org/blink/trunk@83038 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment