void RenderRegion::attachRegion() { if (documentBeingDestroyed()) return; // A region starts off invalid. setIsValid(false); // Initialize the flow thread reference and create the flow thread object if needed. // The flow thread lifetime is influenced by the number of regions attached to it, // and we are attaching the region to the flow thread. installFlowThread(); if (!m_flowThread) return; // Only after adding the region to the thread, the region is marked to be valid. m_flowThread->addRegionToThread(this); // The region just got attached to the flow thread, lets check whether // it has region styling rules associated. checkRegionStyle(); if (!isValid()) return; m_hasAutoLogicalHeight = shouldHaveAutoLogicalHeight(); if (hasAutoLogicalHeight()) incrementAutoLogicalHeightCount(); }
void RenderRegion::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle) { RenderReplaced::styleDidChange(diff, oldStyle); // If the region is not attached to any thread, there is no need to check // whether the region has region styling since no content will be displayed // into the region. if (!m_flowThread) { setHasCustomRegionStyle(false); return; } checkRegionStyle(); }
void RenderNamedFlowFragment::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle) { RenderRegion::styleDidChange(diff, oldStyle); // If the region is not attached to any thread, there is no need to check // whether the region has region styling since no content will be displayed // into the region. if (!m_flowThread) { setHasCustomRegionStyle(false); return; } checkRegionStyle(); if (parent() && parent()->needsLayout()) setNeedsLayout(MarkOnlyThis); }
void RenderRegion::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle) { RenderBlock::styleDidChange(diff, oldStyle); // If the region is not attached to any thread, there is no need to check // whether the region has region styling since no content will be displayed // into the region. if (!m_flowThread) { setHasCustomRegionStyle(false); return; } checkRegionStyle(); updateRegionHasAutoLogicalHeightFlag(); if (oldStyle && oldStyle->writingMode() != style()->writingMode()) m_flowThread->regionChangedWritingMode(this); }
void RenderNamedFlowFragment::attachRegion() { RenderRegion::attachRegion(); if (documentBeingDestroyed() || !m_flowThread) return; // The region just got attached to the flow thread, lets check whether // it has region styling rules associated. checkRegionStyle(); if (!isValid()) return; m_hasAutoLogicalHeight = shouldHaveAutoLogicalHeight(); if (hasAutoLogicalHeight()) incrementAutoLogicalHeightCount(); }
void RenderRegion::attachRegion() { if (documentBeingDestroyed()) return; // A region starts off invalid. setIsValid(false); // Initialize the flow thread reference and create the flow thread object if needed. // The flow thread lifetime is influenced by the number of regions attached to it, // and we are attaching the region to the flow thread. installFlowThread(); if (!m_flowThread) return; m_flowThread->addRegionToThread(this); // The region just got attached to the flow thread, lets check whether // it has region styling rules associated. checkRegionStyle(); }
void RenderNamedFlowFragment::updateRegionFlags() { checkRegionStyle(); updateRegionHasAutoLogicalHeightFlag(); }