| Index: Source/core/page/PrintContext.cpp
|
| diff --git a/Source/core/page/PrintContext.cpp b/Source/core/page/PrintContext.cpp
|
| index 707b2a3e5c68ac7b44b3f32589600631c2d9a251..32ef68ec5f8c979719137a46b42f9c7de4680171 100644
|
| --- a/Source/core/page/PrintContext.cpp
|
| +++ b/Source/core/page/PrintContext.cpp
|
| @@ -181,14 +181,14 @@ void PrintContext::end()
|
| m_linkAndLinkedDestinationsValid = false;
|
| }
|
|
|
| -static RenderBoxModelObject* enclosingBoxModelObject(LayoutObject* object)
|
| +static LayoutBoxModelObject* enclosingBoxModelObject(LayoutObject* object)
|
| {
|
|
|
| while (object && !object->isBoxModelObject())
|
| object = object->parent();
|
| if (!object)
|
| return nullptr;
|
| - return toRenderBoxModelObject(object);
|
| + return toLayoutBoxModelObject(object);
|
| }
|
|
|
| int PrintContext::pageNumberForElement(Element* element, const FloatSize& pageSizeInPixels)
|
| @@ -197,7 +197,7 @@ int PrintContext::pageNumberForElement(Element* element, const FloatSize& pageSi
|
| RefPtrWillBeRawPtr<Element> protect(element);
|
| element->document().updateLayout();
|
|
|
| - RenderBoxModelObject* box = enclosingBoxModelObject(element->renderer());
|
| + LayoutBoxModelObject* box = enclosingBoxModelObject(element->renderer());
|
| if (!box)
|
| return -1;
|
|
|
|
|