void RenderReplaced::setSelectionState(SelectionState state) { // The selection state for our containing block hierarchy is updated by the base class call. RenderBox::setSelectionState(state); if (m_inlineBoxWrapper && canUpdateSelectionOnRootLineBoxes()) m_inlineBoxWrapper->root().setHasSelectedChildren(isSelected()); }
void LayoutListMarker::setSelectionState(SelectionState state) { // The selection state for our containing block hierarchy is updated by the base class call. LayoutBox::setSelectionState(state); if (inlineBoxWrapper() && canUpdateSelectionOnRootLineBoxes()) inlineBoxWrapper()->root().setHasSelectedChildren(state != SelectionNone); }
void RenderReplaced::setSelectionState(SelectionState state) { // The selection state for our containing block hierarchy is updated by the base class call. RenderBox::setSelectionState(state); if (!inlineBoxWrapper()) return; // We only include the space below the baseline in our layer's cached paint invalidation rect if the // image is selected. Since the selection state has changed update the rect. if (hasLayer()) setPreviousPaintInvalidationRect(boundsRectForPaintInvalidation(containerForPaintInvalidation())); if (canUpdateSelectionOnRootLineBoxes()) inlineBoxWrapper()->root().setHasSelectedChildren(isSelected()); }
void LayoutReplaced::setSelectionState(SelectionState state) { // The selection state for our containing block hierarchy is updated by the // base class call. LayoutBox::setSelectionState(state); if (!inlineBoxWrapper()) return; // We only include the space below the baseline in our layer's cached paint // invalidation rect if the image is selected. Since the selection state has // changed update the rect. if (hasLayer()) { LayoutRect rect = localVisualRect(); PaintLayer::mapRectToPaintInvalidationBacking( *this, containerForPaintInvalidation(), rect); setPreviousVisualRect(rect); } if (canUpdateSelectionOnRootLineBoxes()) inlineBoxWrapper()->root().setHasSelectedChildren(state != SelectionNone); }