| Index: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
|
| index 078c1b08de5eb473135d85436c0c0f17c311ee5e..86c89055bb7ce6623f6cc00e09fdd72669e442c7 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
|
| @@ -1934,6 +1934,23 @@ void LayoutBlockFlow::deleteLineBoxTree()
|
| m_lineBoxes.deleteLineBoxTree();
|
| }
|
|
|
| +int LayoutBlockFlow::lineCount(const RootInlineBox* stopRootInlineBox) const
|
| +{
|
| +#ifndef NDEBUG
|
| + ASSERT(!stopRootInlineBox || stopRootInlineBox->block().debugPointer() == this);
|
| +#endif
|
| + if (!childrenInline())
|
| + return 0;
|
| +
|
| + int count = 0;
|
| + for (const RootInlineBox* box = firstRootBox(); box; box = box->nextRootBox()) {
|
| + count++;
|
| + if (box == stopRootInlineBox)
|
| + break;
|
| + }
|
| + return count;
|
| +}
|
| +
|
| void LayoutBlockFlow::removeFloatingObjectsFromDescendants()
|
| {
|
| if (!containsFloats())
|
|
|