| Index: Source/core/rendering/RenderBlockLineLayout.cpp
|
| diff --git a/Source/core/rendering/RenderBlockLineLayout.cpp b/Source/core/rendering/RenderBlockLineLayout.cpp
|
| index e45d475b85a53643bf3442e3c967c8a7d9146084..41eadb7f564620b16d3b66640d1ce0de38d51567 100644
|
| --- a/Source/core/rendering/RenderBlockLineLayout.cpp
|
| +++ b/Source/core/rendering/RenderBlockLineLayout.cpp
|
| @@ -256,7 +256,7 @@ RootInlineBox* RenderBlockFlow::constructLine(BidiRunList<BidiRun>& bidiRuns, co
|
| if (!box)
|
| continue;
|
|
|
| - if (!rootHasSelectedChildren && box->renderer()->selectionState() != RenderObject::SelectionNone)
|
| + if (!rootHasSelectedChildren && box->renderer().selectionState() != RenderObject::SelectionNone)
|
| rootHasSelectedChildren = true;
|
|
|
| // If we have no parent box yet, or if the run is not simply a sibling,
|
| @@ -961,11 +961,11 @@ void RenderBlockFlow::layoutRunsAndFloats(LineLayoutState& layoutState)
|
| // adjust the height accordingly.
|
| // A line break can be either the first or the last object on a line, depending on its direction.
|
| if (InlineBox* lastLeafChild = lastRootBox()->lastLeafChild()) {
|
| - RenderObject* lastObject = lastLeafChild->renderer();
|
| - if (!lastObject->isBR())
|
| + RenderObject& lastObject = lastLeafChild->renderer();
|
| + if (!lastObject.isBR())
|
| lastObject = lastRootBox()->firstLeafChild()->renderer();
|
| - if (lastObject->isBR()) {
|
| - EClear clear = lastObject->style()->clear();
|
| + if (lastObject.isBR()) {
|
| + EClear clear = lastObject.style()->clear();
|
| if (clear != CNONE)
|
| clearFloats(clear);
|
| }
|
| @@ -1423,7 +1423,7 @@ void RenderBlockFlow::linkToEndLineIfNeeded(LineLayoutState& layoutState)
|
| if (layoutState.checkForFloatsFromLastLine()) {
|
| LayoutUnit bottomVisualOverflow = lastRootBox()->logicalBottomVisualOverflow();
|
| LayoutUnit bottomLayoutOverflow = lastRootBox()->logicalBottomLayoutOverflow();
|
| - TrailingFloatsRootInlineBox* trailingFloatsLineBox = new TrailingFloatsRootInlineBox(this);
|
| + TrailingFloatsRootInlineBox* trailingFloatsLineBox = new TrailingFloatsRootInlineBox(*this);
|
| m_lineBoxes.appendLineBox(trailingFloatsLineBox);
|
| trailingFloatsLineBox->setConstructed();
|
| GlyphOverflowAndFallbackFontsMap textBoxDataMap;
|
|
|