Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further reduce use of downcast<>() in rendering code
https://bugs.webkit.org/show_bug.cgi?id=267471 Reviewed by Geoffrey Garen. * Source/WebCore/rendering/RenderBlock.cpp: (WebCore::RenderBlock::removePositionedObjectsIfNeeded): (WebCore::RenderBlock::simplifiedLayout): (WebCore::RenderBlock::layoutPositionedObject): (WebCore::RenderBlock::blockSelectionGaps): (WebCore::RenderBlock::clearPercentHeightDescendantsFrom): (WebCore::isChildHitTestCandidate): (WebCore::RenderBlock::positionForPoint): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths const): (WebCore::RenderBlock::computeChildPreferredLogicalWidths const): (WebCore::RenderBlock::hasMarginBeforeQuirk const): (WebCore::RenderBlock::hasMarginAfterQuirk const): * Source/WebCore/rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::previousSiblingWithOverhangingFloats const): (WebCore::RenderBlockFlow::rebuildFloatingObjectSetFromIntrudingFloats): (WebCore::RenderBlockFlow::computeIntrinsicLogicalWidths const): (WebCore::RenderBlockFlow::layoutBlock): (WebCore::firstInlineFormattingContextRoot): (WebCore::lastInlineFormattingContextRoot): (WebCore::RenderBlockFlow::layoutBlockChildren): (WebCore::RenderBlockFlow::selfCollapsingMarginBeforeWithClear): (WebCore::RenderBlockFlow::collapseMarginsWithChildInfo): (WebCore::RenderBlockFlow::marginBeforeEstimateForChild const): (WebCore::RenderBlockFlow::estimateLogicalTopPosition): (WebCore::RenderBlockFlow::adjustForUnsplittableChild): (WebCore::RenderBlockFlow::subtreeContainsFloat const): (WebCore::RenderBlockFlow::subtreeContainsFloats const): (WebCore::RenderBlockFlow::markAllDescendantsWithFloatsForLayout): (WebCore::RenderBlockFlow::markSiblingsWithFloatsForLayout): (WebCore::RenderBlockFlow::hitTestFloats): (WebCore::RenderBlockFlow::adjustEnclosingTopForPrecedingBlock const): (WebCore::positionForRun): (WebCore::RenderBlockFlow::findClosestTextAtAbsolutePoint): (WebCore::RenderBlockFlow::layoutModernLines): (WebCore::isVisibleRenderText): (WebCore::resizeTextPermitted): (WebCore::RenderBlockFlow::checkForPaginationLogicalHeightChange): (WebCore::stripTrailingSpace): (WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths const): * Source/WebCore/rendering/RenderBox.cpp: (WebCore::RenderBox::updateGridPositionAfterStyleChange): (WebCore::RenderBox::resetLogicalHeightBeforeLayoutIfNeeded): (WebCore::RenderBox::findAutoscrollable): (WebCore::RenderBox::hitTestClipPath const): (WebCore::RenderBox::repaintLayerRectsForImage): (WebCore::RenderBox::computeVisibleRectsInContainer const): (WebCore::RenderBox::hasStretchedLogicalHeight const): (WebCore::RenderBox::hasStretchedLogicalWidth const): (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem const): (WebCore::RenderBox::computeReplacedLogicalHeightUsing const): (WebCore::RenderBox::availableLogicalHeightUsing const): (WebCore::RenderBox::containingBlockLogicalWidthForPositioned const): (WebCore::RenderBox::containingBlockLogicalHeightForPositioned const): (WebCore::computeInlineStaticDistance): (WebCore::RenderBox::computePositionedLogicalWidth const): (WebCore::positionWithRTLInlineBoxContainingBlock): (WebCore::computeBlockStaticDistance): (WebCore::RenderBox::computePositionedLogicalHeight const): (WebCore::RenderBox::positionForPoint): * Source/WebCore/rendering/RenderBox.h: (WebCore::RenderBox::parentBox const): (WebCore::RenderBox::firstChildBox const): (WebCore::RenderBox::lastChildBox const): (WebCore::RenderBox::previousSiblingBox const): (WebCore::RenderBox::nextSiblingBox const): * Source/WebCore/rendering/RenderBoxModelObject.cpp: (WebCore::accumulateInFlowPositionOffsets): (WebCore::RenderBoxModelObject::computeStickyPositionConstraints const): * Source/WebCore/rendering/RenderButton.cpp: (WebCore::RenderButton::updateFromElement): * Source/WebCore/rendering/RenderCounter.cpp: (WebCore::ancestorStyleContainmentObject): (WebCore::previousSiblingOrParentElement): (WebCore::listItemCounterDirectives): (showCounterRendererTree): * Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp: (WebCore::getHeightForLineCount): (WebCore::RenderDeprecatedFlexibleBox::applyModernLineClamp): (WebCore::RenderDeprecatedFlexibleBox::applyLineClamp): (WebCore::RenderDeprecatedFlexibleBox::clearLineClamp): * Source/WebCore/rendering/RenderDetailsMarker.cpp: (WebCore::RenderDetailsMarker::isOpen const): * Source/WebCore/rendering/RenderElement.cpp: (WebCore::RenderElement::adjustStyleDifference const): (WebCore::RenderElement::repaintBeforeStyleChange): (WebCore::RenderElement::didAttachChild): (WebCore::findNextLayer): (WebCore::layerNextSiblingRespectingTopLayer): (WebCore::RenderElement::repaintAfterLayoutIfNeeded): (WebCore::RenderElement::repaintForPausedImageAnimationsIfNeeded): (WebCore::RenderElement::getLeadingCorner const): (WebCore::RenderElement::getTrailingCorner const): (WebCore::RenderElement::updateOutlineAutoAncestor): (WebCore::RenderElement::adjustFragmentedFlowStateOnContainingBlockChangeIfNeeded): (WebCore::RenderElement::removeFromRenderFragmentedFlowIncludingDescendants): (WebCore::includeNonFixedHeight): (WebCore::RenderElement::adjustComputedFontSizesOnBlocks): (WebCore::RenderElement::resetTextAutosizing): (WebCore::RenderElement::referenceBoxRect const): Canonical link: https://commits.webkit.org/272997@main
- Loading branch information