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

Unified Diff: Source/core/layout/PaintInvalidationState.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/layout/OrderIterator.cpp ('k') | Source/core/layout/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/PaintInvalidationState.cpp
diff --git a/Source/core/layout/PaintInvalidationState.cpp b/Source/core/layout/PaintInvalidationState.cpp
index 0df3364db46d934c3066ffdc3fe416371a03c1d0..8ba8d58c5539c11004762a72ccb670ba16bb90f0 100644
--- a/Source/core/layout/PaintInvalidationState.cpp
+++ b/Source/core/layout/PaintInvalidationState.cpp
@@ -57,14 +57,14 @@ PaintInvalidationState::PaintInvalidationState(const PaintInvalidationState& nex
FloatPoint fixedOffset = renderer.localToContainerPoint(FloatPoint(), &m_paintInvalidationContainer, TraverseDocumentBoundaries);
m_paintOffset = LayoutSize(fixedOffset.x(), fixedOffset.y());
} else {
- LayoutSize offset = renderer.isBox() && !renderer.isTableRow() ? toRenderBox(renderer).locationOffset() : LayoutSize();
+ LayoutSize offset = renderer.isBox() && !renderer.isTableRow() ? toLayoutBox(renderer).locationOffset() : LayoutSize();
m_paintOffset = next.m_paintOffset + offset;
}
if (renderer.isOutOfFlowPositioned() && !fixed) {
if (LayoutObject* container = renderer.container()) {
if (container->style()->hasInFlowPosition() && container->isRenderInline())
- m_paintOffset += toRenderInline(container)->offsetForInFlowPositionedInline(toRenderBox(renderer));
+ m_paintOffset += toRenderInline(container)->offsetForInFlowPositionedInline(toLayoutBox(renderer));
}
}
@@ -119,7 +119,7 @@ void PaintInvalidationState::applyClipIfNeeded(const LayoutObject& renderer)
if (!renderer.hasOverflowClip())
return;
- const RenderBox& box = toRenderBox(renderer);
+ const LayoutBox& box = toLayoutBox(renderer);
// Do not clip scroll layer contents because the compositor expects the whole layer
// to be always invalidated in-time.
« no previous file with comments | « Source/core/layout/OrderIterator.cpp ('k') | Source/core/layout/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698