Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1484)

Unified Diff: Source/core/page/PrintContext.cpp

Issue 944923004: rendering/RenderBoxModelObject -> layout/LayoutBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « Source/core/layout/svg/SVGTextLayoutAttributesBuilder.cpp ('k') | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698