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

Unified Diff: Source/core/rendering/RenderView.cpp

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (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
« no previous file with comments | « Source/core/rendering/RenderView.h ('k') | Source/core/svg/graphics/SVGImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index e51f00418ec639c373148f0db259994c7bceac41..51396c5303198b31c752fddae36f3db6736e199d 100644
--- a/Source/core/rendering/RenderView.cpp
+++ b/Source/core/rendering/RenderView.cpp
@@ -201,7 +201,7 @@ void RenderView::layout()
if (child->isSVGRoot())
continue;
- if ((child->isBox() && toRenderBox(child)->hasRelativeLogicalHeight())
+ if ((child->isBox() && toLayoutBox(child)->hasRelativeLogicalHeight())
|| child->style()->logicalHeight().isPercent()
|| child->style()->logicalMinHeight().isPercent()
|| child->style()->logicalMaxHeight().isPercent())
@@ -251,7 +251,7 @@ void RenderView::mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati
if (LayoutObject* parentDocRenderer = frame()->ownerRenderer()) {
transformState.move(-frame()->view()->scrollOffset());
if (parentDocRenderer->isBox())
- transformState.move(toRenderBox(parentDocRenderer)->contentBoxOffset());
+ transformState.move(toLayoutBox(parentDocRenderer)->contentBoxOffset());
parentDocRenderer->mapLocalToContainer(paintInvalidationContainer, transformState, mode, wasFixed, paintInvalidationState);
return;
}
@@ -395,7 +395,7 @@ void RenderView::mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p
if (!owner)
return;
- if (RenderBox* obj = owner->renderBox()) {
+ if (LayoutBox* obj = owner->layoutBox()) {
// Intersect the viewport with the paint invalidation rect.
LayoutRect viewRectangle = viewRect();
rect.intersect(viewRectangle);
@@ -854,7 +854,7 @@ LayoutObject* RenderView::backgroundRenderer() const
return 0;
}
-LayoutRect RenderView::backgroundRect(RenderBox* backgroundRenderer) const
+LayoutRect RenderView::backgroundRect(LayoutBox* backgroundRenderer) const
{
if (!hasColumns())
return unscaledDocumentRect();
« no previous file with comments | « Source/core/rendering/RenderView.h ('k') | Source/core/svg/graphics/SVGImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698