LayoutState::LayoutState(RenderObject& root) : m_clipped(false) , m_isPaginated(false) , m_pageLogicalHeightChanged(false) #if !ASSERT_DISABLED && ENABLE(SATURATED_LAYOUT_ARITHMETIC) , m_layoutDeltaXSaturated(false) , m_layoutDeltaYSaturated(false) #endif , m_columnInfo(0) , m_lineGrid(0) #if ENABLE(CSS_SHAPES) , m_shapeInsideInfo(0) #endif , m_pageLogicalHeight(0) #ifndef NDEBUG , m_renderer(&root) #endif { RenderElement* container = root.container(); FloatPoint absContentPoint = container->localToAbsolute(FloatPoint(), UseTransforms); m_paintOffset = LayoutSize(absContentPoint.x(), absContentPoint.y()); if (container->hasOverflowClip()) { m_clipped = true; RenderBox* containerBox = toRenderBox(container); m_clipRect = LayoutRect(toPoint(m_paintOffset), containerBox->cachedSizeForOverflowClip()); m_paintOffset -= containerBox->scrolledContentOffset(); } }
LayoutState::LayoutState(RenderObject* root) : m_clipped(false) , m_isPaginated(false) , m_pageLogicalHeightChanged(false) #if !ASSERT_DISABLED , m_layoutDeltaXSaturated(false) , m_layoutDeltaYSaturated(false) #endif , m_columnInfo(0) , m_lineGrid(0) , m_next(0) , m_exclusionShapeInsideInfo(0) , m_pageLogicalHeight(0) #ifndef NDEBUG , m_renderer(root) #endif { RenderObject* container = root->container(); FloatPoint absContentPoint = container->localToAbsolute(FloatPoint(), UseTransforms); m_paintOffset = LayoutSize(absContentPoint.x(), absContentPoint.y()); if (container->hasOverflowClip()) { m_clipped = true; RenderBox* containerBox = toRenderBox(container); m_clipRect = LayoutRect(toPoint(m_paintOffset), containerBox->cachedSizeForOverflowClip()); m_paintOffset -= containerBox->scrolledContentOffset(); } }