Index: Source/core/layout/FloatingObjects.cpp |
diff --git a/Source/core/layout/FloatingObjects.cpp b/Source/core/layout/FloatingObjects.cpp |
index bb818d4dd583dd98e7842b40b4f55a7b8a7ccebf..1a8166162bb0215deae347c793fb8bed01627001 100644 |
--- a/Source/core/layout/FloatingObjects.cpp |
+++ b/Source/core/layout/FloatingObjects.cpp |
@@ -86,12 +86,12 @@ PassOwnPtr<FloatingObject> FloatingObject::create(LayoutBox* renderer) |
PassOwnPtr<FloatingObject> FloatingObject::copyToNewContainer(LayoutSize offset, bool shouldPaint, bool isDescendant) const |
{ |
- return adoptPtr(new FloatingObject(renderer(), type(), LayoutRect(frameRect().location() - offset, frameRect().size()), shouldPaint, isDescendant)); |
+ return adoptPtr(new FloatingObject(layoutObject(), type(), LayoutRect(frameRect().location() - offset, frameRect().size()), shouldPaint, isDescendant)); |
} |
PassOwnPtr<FloatingObject> FloatingObject::unsafeClone() const |
{ |
- OwnPtr<FloatingObject> cloneObject = adoptPtr(new FloatingObject(renderer(), type(), m_frameRect, m_shouldPaint, m_isDescendant)); |
+ OwnPtr<FloatingObject> cloneObject = adoptPtr(new FloatingObject(layoutObject(), type(), m_frameRect, m_shouldPaint, m_isDescendant)); |
cloneObject->m_paginationStrut = m_paginationStrut; |
cloneObject->m_isPlaced = m_isPlaced; |
return cloneObject.release(); |
@@ -168,7 +168,7 @@ void FloatingObjects::clearLineBoxTreePointers() |
// Clear references to originating lines, since the lines are being deleted |
FloatingObjectSetIterator end = m_set.end(); |
for (FloatingObjectSetIterator it = m_set.begin(); it != end; ++it) { |
- ASSERT(!((*it)->originatingLine()) || (*it)->originatingLine()->renderer() == m_renderer); |
+ ASSERT(!((*it)->originatingLine()) || (*it)->originatingLine()->layoutObject() == m_renderer); |
(*it)->setOriginatingLine(0); |
} |
} |
@@ -273,7 +273,7 @@ void FloatingObjects::moveAllToFloatInfoMap(RendererToFloatInfoMap& map) |
{ |
while (!m_set.isEmpty()) { |
OwnPtr<FloatingObject> floatingObject = m_set.takeFirst(); |
- LayoutBox* renderer = floatingObject->renderer(); |
+ LayoutBox* renderer = floatingObject->layoutObject(); |
map.add(renderer, floatingObject.release()); |
} |
clear(); |
@@ -484,7 +484,7 @@ template<> |
inline bool ComputeFloatOffsetForLineLayoutAdapter<FloatingObject::FloatLeft>::updateOffsetIfNeeded(const FloatingObject& floatingObject) |
{ |
LayoutUnit logicalRight = m_renderer->logicalRightForFloat(&floatingObject); |
- if (ShapeOutsideInfo* shapeOutside = floatingObject.renderer()->shapeOutsideInfo()) { |
+ if (ShapeOutsideInfo* shapeOutside = floatingObject.layoutObject()->shapeOutsideInfo()) { |
ShapeOutsideDeltas shapeDeltas = shapeOutside->computeDeltasForContainingBlockLine(*m_renderer, floatingObject, m_lineTop, m_lineBottom - m_lineTop); |
if (!shapeDeltas.lineOverlapsShape()) |
return false; |
@@ -503,7 +503,7 @@ template<> |
inline bool ComputeFloatOffsetForLineLayoutAdapter<FloatingObject::FloatRight>::updateOffsetIfNeeded(const FloatingObject& floatingObject) |
{ |
LayoutUnit logicalLeft = m_renderer->logicalLeftForFloat(&floatingObject); |
- if (ShapeOutsideInfo* shapeOutside = floatingObject.renderer()->shapeOutsideInfo()) { |
+ if (ShapeOutsideInfo* shapeOutside = floatingObject.layoutObject()->shapeOutsideInfo()) { |
ShapeOutsideDeltas shapeDeltas = shapeOutside->computeDeltasForContainingBlockLine(*m_renderer, floatingObject, m_lineTop, m_lineBottom - m_lineTop); |
if (!shapeDeltas.lineOverlapsShape()) |
return false; |