⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268919 in webkit


Ignore:
Timestamp:
Oct 23, 2020, 2:55:25 AM (6 years ago)
Author:
svillar@igalia.com
Message:

Rename override sizes to overriding sizes
https://bugs.webkit.org/show_bug.cgi?id=217898

Reviewed by Darin Adler.

We've been traditionally using the word "override" to refer to those sizes that were explicitly set by
layout systems like tables, flex or grid. However that's a grammatical mistake. override is a verb which
does not work well as a noun. It'd be more correct to refer to them as "overriding" sizes.

No new tests required as this is just a renaming.

  • WebCore.order:
  • rendering/ComplexLineLayout.cpp:

(WebCore::ComplexLineLayout::updateRubyForJustifiedText):

  • rendering/GridLayoutFunctions.cpp:

(WebCore::GridLayoutFunctions::hasOverridingContainingBlockContentSizeForChild):
(WebCore::GridLayoutFunctions::overridingContainingBlockContentSizeForChild):
(WebCore::GridLayoutFunctions::hasOverrideContainingBlockContentSizeForChild): Deleted.
(WebCore::GridLayoutFunctions::overrideContainingBlockContentSizeForChild): Deleted.

  • rendering/GridLayoutFunctions.h:
  • rendering/GridTrackSizingAlgorithm.cpp:

(WebCore::shouldClearOverridingContainingBlockContentSizeForChild):
(WebCore::setOverridingContainingBlockContentSizeForChild):
(WebCore::GridTrackSizingAlgorithmStrategy::logicalHeightForChild const):
(WebCore::GridTrackSizingAlgorithmStrategy::minContentForChild const):
(WebCore::GridTrackSizingAlgorithmStrategy::maxContentForChild const):
(WebCore::GridTrackSizingAlgorithmStrategy::updateOverridingContainingBlockContentSizeForChild const):
(WebCore::GridTrackSizingAlgorithmStrategy::minLogicalSizeForChild const):
(WebCore::DefiniteSizeStrategy::minLogicalSizeForChild const):
(WebCore::DefiniteSizeStrategy::minContentForChild const):
(WebCore::shouldClearOverrideContainingBlockContentSizeForChild): Deleted.
(WebCore::setOverrideContainingBlockContentSizeForChild): Deleted.
(WebCore::GridTrackSizingAlgorithmStrategy::updateOverrideContainingBlockContentSizeForChild const): Deleted.

  • rendering/GridTrackSizingAlgorithm.h:
  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::insertPositionedObject):
(WebCore::RenderBlock::computeChildPreferredLogicalWidths const):
(WebCore::RenderBlock::availableLogicalHeightForPercentageComputation const):

  • rendering/RenderBlockFlow.cpp:

(WebCore::RenderBlockFlow::fitBorderToLinesIfNeeded):

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::willBeDestroyed):
(WebCore::RenderBox::styleDidChange):
(WebCore::RenderBox::hasOverridingLogicalHeight const):
(WebCore::RenderBox::hasOverridingLogicalWidth const):
(WebCore::RenderBox::setOverridingLogicalHeight):
(WebCore::RenderBox::setOverridingLogicalWidth):
(WebCore::RenderBox::clearOverridingLogicalHeight):
(WebCore::RenderBox::clearOverridingLogicalWidth):
(WebCore::RenderBox::clearOverridingContentSize):
(WebCore::RenderBox::overridingLogicalWidth const):
(WebCore::RenderBox::overridingLogicalHeight const):
(WebCore::RenderBox::overridingContainingBlockContentWidth const):
(WebCore::RenderBox::overridingContainingBlockContentHeight const):
(WebCore::RenderBox::hasOverridingContainingBlockContentWidth const):
(WebCore::RenderBox::hasOverridingContainingBlockContentHeight const):
(WebCore::RenderBox::overridingContainingBlockContentLogicalWidth const):
(WebCore::RenderBox::overridingContainingBlockContentLogicalHeight const):
(WebCore::RenderBox::hasOverridingContainingBlockContentLogicalWidth const):
(WebCore::RenderBox::hasOverridingContainingBlockContentLogicalHeight const):
(WebCore::RenderBox::setOverridingContainingBlockContentLogicalWidth):
(WebCore::RenderBox::setOverridingContainingBlockContentLogicalHeight):
(WebCore::RenderBox::clearOverridingContainingBlockContentSize):
(WebCore::RenderBox::clearOverridingContainingBlockContentLogicalHeight):
(WebCore::RenderBox::containingBlockLogicalWidthForContent const):
(WebCore::RenderBox::containingBlockLogicalHeightForContent const):
(WebCore::RenderBox::perpendicularContainingBlockLogicalHeight const):
(WebCore::RenderBox::computeLogicalWidthInFragment const):
(WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem const):
(WebCore::RenderBox::computeLogicalHeight const):
(WebCore::RenderBox::computePercentageLogicalHeight const):
(WebCore::RenderBox::computeReplacedLogicalHeightUsing const):
(WebCore::RenderBox::availableLogicalHeightUsing const):
(WebCore::RenderBox::containingBlockLogicalWidthForPositioned const):
(WebCore::RenderBox::containingBlockLogicalHeightForPositioned const):
(WebCore::RenderBox::hasOverrideLogicalHeight const): Deleted.
(WebCore::RenderBox::hasOverrideLogicalWidth const): Deleted.
(WebCore::RenderBox::setOverrideLogicalHeight): Deleted.
(WebCore::RenderBox::setOverrideLogicalWidth): Deleted.
(WebCore::RenderBox::clearOverrideLogicalHeight): Deleted.
(WebCore::RenderBox::clearOverrideLogicalWidth): Deleted.
(WebCore::RenderBox::clearOverrideContentSize): Deleted.
(WebCore::RenderBox::overrideLogicalWidth const): Deleted.
(WebCore::RenderBox::overrideLogicalHeight const): Deleted.
(WebCore::RenderBox::overrideContainingBlockContentWidth const): Deleted.
(WebCore::RenderBox::overrideContainingBlockContentHeight const): Deleted.
(WebCore::RenderBox::hasOverrideContainingBlockContentWidth const): Deleted.
(WebCore::RenderBox::hasOverrideContainingBlockContentHeight const): Deleted.
(WebCore::RenderBox::overrideContainingBlockContentLogicalWidth const): Deleted.
(WebCore::RenderBox::overrideContainingBlockContentLogicalHeight const): Deleted.
(WebCore::RenderBox::hasOverrideContainingBlockContentLogicalWidth const): Deleted.
(WebCore::RenderBox::hasOverrideContainingBlockContentLogicalHeight const): Deleted.
(WebCore::RenderBox::setOverrideContainingBlockContentLogicalWidth): Deleted.
(WebCore::RenderBox::setOverrideContainingBlockContentLogicalHeight): Deleted.
(WebCore::RenderBox::clearOverrideContainingBlockContentSize): Deleted.
(WebCore::RenderBox::clearOverrideContainingBlockContentLogicalHeight): Deleted.

  • rendering/RenderBox.h:

(WebCore::RenderBox::overridingContentLogicalWidth const):
(WebCore::RenderBox::overridingContentLogicalHeight const):
(WebCore::RenderBox::overrideContentLogicalWidth const): Deleted.
(WebCore::RenderBox::overrideContentLogicalHeight const): Deleted.

  • rendering/RenderBoxModelObject.cpp:

(WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight const):
(WebCore::RenderBoxModelObject::relativePositionOffset const):

  • rendering/RenderBoxModelObject.h:

(WebCore::RenderBoxModelObject::overridingContainingBlockContentWidth const):
(WebCore::RenderBoxModelObject::overridingContainingBlockContentHeight const):
(WebCore::RenderBoxModelObject::hasOverridingContainingBlockContentWidth const):
(WebCore::RenderBoxModelObject::hasOverridingContainingBlockContentHeight const):
(WebCore::RenderBoxModelObject::overrideContainingBlockContentWidth const): Deleted.
(WebCore::RenderBoxModelObject::overrideContainingBlockContentHeight const): Deleted.
(WebCore::RenderBoxModelObject::hasOverrideContainingBlockContentWidth const): Deleted.
(WebCore::RenderBoxModelObject::hasOverrideContainingBlockContentHeight const): Deleted.

  • rendering/RenderDeprecatedFlexibleBox.cpp:

(WebCore::widthForChild):
(WebCore::heightForChild):
(WebCore::gatherFlexChildrenInfo):
(WebCore::RenderDeprecatedFlexibleBox::layoutHorizontalBox):
(WebCore::RenderDeprecatedFlexibleBox::layoutVerticalBox):
(WebCore::RenderDeprecatedFlexibleBox::applyLineClamp):
(WebCore::RenderDeprecatedFlexibleBox::clearLineClamp):

  • rendering/RenderFlexibleBox.cpp:

(WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth const):
(WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild):
(WebCore::RenderFlexibleBox::crossSizeForPercentageResolution):
(WebCore::RenderFlexibleBox::mainSizeForPercentageResolution):
(WebCore::RenderFlexibleBox::constructFlexItem):
(WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild):
(WebCore::RenderFlexibleBox::applyStretchAlignmentToChild):

  • rendering/RenderFullScreen.cpp:

(WebCore::RenderFullScreen::unwrapRenderer):

  • rendering/RenderGrid.cpp:

(WebCore::RenderGrid::layoutBlock):
(WebCore::RenderGrid::placeItemsOnGrid const):
(WebCore::overrideSizeChanged):
(WebCore::RenderGrid::updateGridAreaLogicalSize const):
(WebCore::RenderGrid::layoutPositionedObject):
(WebCore::RenderGrid::applyStretchAlignmentToChildIfNeeded):
(WebCore::RenderGrid::updateAutoMarginsInRowAxisIfNeeded):
(WebCore::RenderGrid::updateAutoMarginsInColumnAxisIfNeeded):
(WebCore::RenderGrid::gridAreaPositionForOutOfFlowChild const):

  • rendering/RenderRubyBase.cpp:

(WebCore::RenderRubyBase::adjustInlineDirectionLineBounds const):

  • rendering/RenderTable.cpp:

(WebCore::RenderTable::updateLogicalWidth):

  • rendering/RenderTableCell.cpp:

(WebCore::RenderTableCell::setOverridingLogicalHeightFromRowHeight):
(WebCore::RenderTableCell::setOverrideLogicalHeightFromRowHeight): Deleted.

  • rendering/RenderTableCell.h:
  • rendering/RenderTableSection.cpp:

(WebCore::RenderTableSection::calcRowLogicalHeight):
(WebCore::RenderTableSection::relayoutCellIfFlexed):

Location:
trunk/Source/WebCore
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r268907 r268919  
     12020-10-21  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        Rename override sizes to overriding sizes
     4        https://bugs.webkit.org/show_bug.cgi?id=217898
     5
     6        Reviewed by Darin Adler.
     7
     8        We've been traditionally using the word "override" to refer to those sizes that were explicitly set by
     9        layout systems like tables, flex or grid. However that's a grammatical mistake. override is a verb which
     10        does not work well as a noun. It'd be more correct to refer to them as "overriding" sizes.
     11
     12        No new tests required as this is just a renaming.
     13
     14        * WebCore.order:
     15        * rendering/ComplexLineLayout.cpp:
     16        (WebCore::ComplexLineLayout::updateRubyForJustifiedText):
     17        * rendering/GridLayoutFunctions.cpp:
     18        (WebCore::GridLayoutFunctions::hasOverridingContainingBlockContentSizeForChild):
     19        (WebCore::GridLayoutFunctions::overridingContainingBlockContentSizeForChild):
     20        (WebCore::GridLayoutFunctions::hasOverrideContainingBlockContentSizeForChild): Deleted.
     21        (WebCore::GridLayoutFunctions::overrideContainingBlockContentSizeForChild): Deleted.
     22        * rendering/GridLayoutFunctions.h:
     23        * rendering/GridTrackSizingAlgorithm.cpp:
     24        (WebCore::shouldClearOverridingContainingBlockContentSizeForChild):
     25        (WebCore::setOverridingContainingBlockContentSizeForChild):
     26        (WebCore::GridTrackSizingAlgorithmStrategy::logicalHeightForChild const):
     27        (WebCore::GridTrackSizingAlgorithmStrategy::minContentForChild const):
     28        (WebCore::GridTrackSizingAlgorithmStrategy::maxContentForChild const):
     29        (WebCore::GridTrackSizingAlgorithmStrategy::updateOverridingContainingBlockContentSizeForChild const):
     30        (WebCore::GridTrackSizingAlgorithmStrategy::minLogicalSizeForChild const):
     31        (WebCore::DefiniteSizeStrategy::minLogicalSizeForChild const):
     32        (WebCore::DefiniteSizeStrategy::minContentForChild const):
     33        (WebCore::shouldClearOverrideContainingBlockContentSizeForChild): Deleted.
     34        (WebCore::setOverrideContainingBlockContentSizeForChild): Deleted.
     35        (WebCore::GridTrackSizingAlgorithmStrategy::updateOverrideContainingBlockContentSizeForChild const): Deleted.
     36        * rendering/GridTrackSizingAlgorithm.h:
     37        * rendering/RenderBlock.cpp:
     38        (WebCore::RenderBlock::insertPositionedObject):
     39        (WebCore::RenderBlock::computeChildPreferredLogicalWidths const):
     40        (WebCore::RenderBlock::availableLogicalHeightForPercentageComputation const):
     41        * rendering/RenderBlockFlow.cpp:
     42        (WebCore::RenderBlockFlow::fitBorderToLinesIfNeeded):
     43        * rendering/RenderBox.cpp:
     44        (WebCore::RenderBox::willBeDestroyed):
     45        (WebCore::RenderBox::styleDidChange):
     46        (WebCore::RenderBox::hasOverridingLogicalHeight const):
     47        (WebCore::RenderBox::hasOverridingLogicalWidth const):
     48        (WebCore::RenderBox::setOverridingLogicalHeight):
     49        (WebCore::RenderBox::setOverridingLogicalWidth):
     50        (WebCore::RenderBox::clearOverridingLogicalHeight):
     51        (WebCore::RenderBox::clearOverridingLogicalWidth):
     52        (WebCore::RenderBox::clearOverridingContentSize):
     53        (WebCore::RenderBox::overridingLogicalWidth const):
     54        (WebCore::RenderBox::overridingLogicalHeight const):
     55        (WebCore::RenderBox::overridingContainingBlockContentWidth const):
     56        (WebCore::RenderBox::overridingContainingBlockContentHeight const):
     57        (WebCore::RenderBox::hasOverridingContainingBlockContentWidth const):
     58        (WebCore::RenderBox::hasOverridingContainingBlockContentHeight const):
     59        (WebCore::RenderBox::overridingContainingBlockContentLogicalWidth const):
     60        (WebCore::RenderBox::overridingContainingBlockContentLogicalHeight const):
     61        (WebCore::RenderBox::hasOverridingContainingBlockContentLogicalWidth const):
     62        (WebCore::RenderBox::hasOverridingContainingBlockContentLogicalHeight const):
     63        (WebCore::RenderBox::setOverridingContainingBlockContentLogicalWidth):
     64        (WebCore::RenderBox::setOverridingContainingBlockContentLogicalHeight):
     65        (WebCore::RenderBox::clearOverridingContainingBlockContentSize):
     66        (WebCore::RenderBox::clearOverridingContainingBlockContentLogicalHeight):
     67        (WebCore::RenderBox::containingBlockLogicalWidthForContent const):
     68        (WebCore::RenderBox::containingBlockLogicalHeightForContent const):
     69        (WebCore::RenderBox::perpendicularContainingBlockLogicalHeight const):
     70        (WebCore::RenderBox::computeLogicalWidthInFragment const):
     71        (WebCore::RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem const):
     72        (WebCore::RenderBox::computeLogicalHeight const):
     73        (WebCore::RenderBox::computePercentageLogicalHeight const):
     74        (WebCore::RenderBox::computeReplacedLogicalHeightUsing const):
     75        (WebCore::RenderBox::availableLogicalHeightUsing const):
     76        (WebCore::RenderBox::containingBlockLogicalWidthForPositioned const):
     77        (WebCore::RenderBox::containingBlockLogicalHeightForPositioned const):
     78        (WebCore::RenderBox::hasOverrideLogicalHeight const): Deleted.
     79        (WebCore::RenderBox::hasOverrideLogicalWidth const): Deleted.
     80        (WebCore::RenderBox::setOverrideLogicalHeight): Deleted.
     81        (WebCore::RenderBox::setOverrideLogicalWidth): Deleted.
     82        (WebCore::RenderBox::clearOverrideLogicalHeight): Deleted.
     83        (WebCore::RenderBox::clearOverrideLogicalWidth): Deleted.
     84        (WebCore::RenderBox::clearOverrideContentSize): Deleted.
     85        (WebCore::RenderBox::overrideLogicalWidth const): Deleted.
     86        (WebCore::RenderBox::overrideLogicalHeight const): Deleted.
     87        (WebCore::RenderBox::overrideContainingBlockContentWidth const): Deleted.
     88        (WebCore::RenderBox::overrideContainingBlockContentHeight const): Deleted.
     89        (WebCore::RenderBox::hasOverrideContainingBlockContentWidth const): Deleted.
     90        (WebCore::RenderBox::hasOverrideContainingBlockContentHeight const): Deleted.
     91        (WebCore::RenderBox::overrideContainingBlockContentLogicalWidth const): Deleted.
     92        (WebCore::RenderBox::overrideContainingBlockContentLogicalHeight const): Deleted.
     93        (WebCore::RenderBox::hasOverrideContainingBlockContentLogicalWidth const): Deleted.
     94        (WebCore::RenderBox::hasOverrideContainingBlockContentLogicalHeight const): Deleted.
     95        (WebCore::RenderBox::setOverrideContainingBlockContentLogicalWidth): Deleted.
     96        (WebCore::RenderBox::setOverrideContainingBlockContentLogicalHeight): Deleted.
     97        (WebCore::RenderBox::clearOverrideContainingBlockContentSize): Deleted.
     98        (WebCore::RenderBox::clearOverrideContainingBlockContentLogicalHeight): Deleted.
     99        * rendering/RenderBox.h:
     100        (WebCore::RenderBox::overridingContentLogicalWidth const):
     101        (WebCore::RenderBox::overridingContentLogicalHeight const):
     102        (WebCore::RenderBox::overrideContentLogicalWidth const): Deleted.
     103        (WebCore::RenderBox::overrideContentLogicalHeight const): Deleted.
     104        * rendering/RenderBoxModelObject.cpp:
     105        (WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight const):
     106        (WebCore::RenderBoxModelObject::relativePositionOffset const):
     107        * rendering/RenderBoxModelObject.h:
     108        (WebCore::RenderBoxModelObject::overridingContainingBlockContentWidth const):
     109        (WebCore::RenderBoxModelObject::overridingContainingBlockContentHeight const):
     110        (WebCore::RenderBoxModelObject::hasOverridingContainingBlockContentWidth const):
     111        (WebCore::RenderBoxModelObject::hasOverridingContainingBlockContentHeight const):
     112        (WebCore::RenderBoxModelObject::overrideContainingBlockContentWidth const): Deleted.
     113        (WebCore::RenderBoxModelObject::overrideContainingBlockContentHeight const): Deleted.
     114        (WebCore::RenderBoxModelObject::hasOverrideContainingBlockContentWidth const): Deleted.
     115        (WebCore::RenderBoxModelObject::hasOverrideContainingBlockContentHeight const): Deleted.
     116        * rendering/RenderDeprecatedFlexibleBox.cpp:
     117        (WebCore::widthForChild):
     118        (WebCore::heightForChild):
     119        (WebCore::gatherFlexChildrenInfo):
     120        (WebCore::RenderDeprecatedFlexibleBox::layoutHorizontalBox):
     121        (WebCore::RenderDeprecatedFlexibleBox::layoutVerticalBox):
     122        (WebCore::RenderDeprecatedFlexibleBox::applyLineClamp):
     123        (WebCore::RenderDeprecatedFlexibleBox::clearLineClamp):
     124        * rendering/RenderFlexibleBox.cpp:
     125        (WebCore::RenderFlexibleBox::childIntrinsicLogicalWidth const):
     126        (WebCore::RenderFlexibleBox::computeInnerFlexBaseSizeForChild):
     127        (WebCore::RenderFlexibleBox::crossSizeForPercentageResolution):
     128        (WebCore::RenderFlexibleBox::mainSizeForPercentageResolution):
     129        (WebCore::RenderFlexibleBox::constructFlexItem):
     130        (WebCore::RenderFlexibleBox::setOverrideMainAxisContentSizeForChild):
     131        (WebCore::RenderFlexibleBox::applyStretchAlignmentToChild):
     132        * rendering/RenderFullScreen.cpp:
     133        (WebCore::RenderFullScreen::unwrapRenderer):
     134        * rendering/RenderGrid.cpp:
     135        (WebCore::RenderGrid::layoutBlock):
     136        (WebCore::RenderGrid::placeItemsOnGrid const):
     137        (WebCore::overrideSizeChanged):
     138        (WebCore::RenderGrid::updateGridAreaLogicalSize const):
     139        (WebCore::RenderGrid::layoutPositionedObject):
     140        (WebCore::RenderGrid::applyStretchAlignmentToChildIfNeeded):
     141        (WebCore::RenderGrid::updateAutoMarginsInRowAxisIfNeeded):
     142        (WebCore::RenderGrid::updateAutoMarginsInColumnAxisIfNeeded):
     143        (WebCore::RenderGrid::gridAreaPositionForOutOfFlowChild const):
     144        * rendering/RenderRubyBase.cpp:
     145        (WebCore::RenderRubyBase::adjustInlineDirectionLineBounds const):
     146        * rendering/RenderTable.cpp:
     147        (WebCore::RenderTable::updateLogicalWidth):
     148        * rendering/RenderTableCell.cpp:
     149        (WebCore::RenderTableCell::setOverridingLogicalHeightFromRowHeight):
     150        (WebCore::RenderTableCell::setOverrideLogicalHeightFromRowHeight): Deleted.
     151        * rendering/RenderTableCell.h:
     152        * rendering/RenderTableSection.cpp:
     153        (WebCore::RenderTableSection::calcRowLogicalHeight):
     154        (WebCore::RenderTableSection::relayoutCellIfFlexed):
     155
    11562020-10-23  Philippe Normand  <pnormand@igalia.com>
    2157
  • trunk/Source/WebCore/WebCore.order

    r263635 r268919  
    97029702__ZN7WebCore17RenderFlexibleBox26autoMarginOffsetInMainAxisERKN3WTF6VectorIPNS_9RenderBoxELm0ENS1_15CrashOnOverflowEEERNS_10LayoutUnitE
    97039703__ZN7WebCore17RenderFlexibleBox22setLogicalOverrideSizeEPNS_9RenderBoxENS_10LayoutUnitE
    9704 __ZN7WebCore9RenderBox30setOverrideLogicalContentWidthENS_10LayoutUnitE
     9704__ZN7WebCore9RenderBox32setOverridingLogicalContentWidthENS_10LayoutUnitE
    97059705__ZN7WebCore17RenderFlexibleBox18needToStretchChildEPNS_9RenderBoxE
    97069706__ZN7WebCore11RenderBlock37updateBlockChildDirtyBitsBeforeLayoutEbPNS_9RenderBoxE
     
    1506015060__ZNSt3__17__sort5IRPFbRKNS_4pairIPN3WTF16AtomicStringImplENS2_12AtomicStringEEES8_EPS6_EEjT0_SD_SD_SD_SD_T_
    1506115061__ZN7WebCore13HTMLBRElement36collectStyleForPresentationAttributeERKNS_13QualifiedNameERKN3WTF12AtomicStringEPNS_23MutableStylePropertySetE
    15062 __ZN7WebCore15RenderTableCell44setOverrideLogicalContentHeightFromRowHeightENS_10LayoutUnitE
    15063 __ZN7WebCore9RenderBox31setOverrideLogicalContentHeightENS_10LayoutUnitE
     15062__ZN7WebCore15RenderTableCell46setOverridingLogicalContentHeightFromRowHeightENS_10LayoutUnitE
     15063__ZN7WebCore9RenderBox33setOverridingLogicalContentHeightENS_10LayoutUnitE
    1506415064__ZNK7WebCore17HTMLScriptElement14isURLAttributeERKNS_9AttributeE
    1506515065__ZNK7WebCore16HTMLImageElement14isURLAttributeERKNS_9AttributeE
     
    2736127361__ZN7WebCoreL18gOverrideHeightMapE
    2736227362__ZN7WebCoreL17gOverrideWidthMapE
    27363 __ZN7WebCoreL39gOverrideContainingBlockLogicalWidthMapE
    27364 __ZN7WebCoreL40gOverrideContainingBlockLogicalHeightMapE
     27363__ZN7WebCoreL41gOverridingContainingBlockLogicalWidthMapE
     27364__ZN7WebCoreL42gOverridingContainingBlockLogicalHeightMapE
    2736527365__ZN7WebCoreL15continuationMapE
    2736627366__ZN7WebCoreL27firstLetterRemainingTextMapE
  • trunk/Source/WebCore/rendering/ComplexLineLayout.cpp

    r268666 r268919  
    591591    }
    592592
    593     ASSERT(!rubyRun.hasOverrideLogicalWidth());
     593    ASSERT(!rubyRun.hasOverridingLogicalWidth());
    594594    float newBaseWidth = rubyRun.logicalWidth() + totalExpansion + m_flow.marginStartForChild(rubyRun) + m_flow.marginEndForChild(rubyRun);
    595595    float newRubyRunWidth = rubyRun.logicalWidth() + totalExpansion;
    596596    rubyBase.setInitialOffset((newRubyRunWidth - newBaseWidth) / 2);
    597     rubyRun.setOverrideLogicalWidth(LayoutUnit(newRubyRunWidth));
     597    rubyRun.setOverridingLogicalWidth(LayoutUnit(newRubyRunWidth));
    598598    rubyRun.setNeedsLayout(MarkOnlyThis);
    599599    rootBox.markDirty();
     
    603603    }
    604604    rubyRun.layoutBlock(true);
    605     rubyRun.clearOverrideLogicalWidth();
     605    rubyRun.clearOverridingLogicalWidth();
    606606    r.box()->setExpansion(newRubyRunWidth - r.box()->logicalWidth());
    607607
  • trunk/Source/WebCore/rendering/GridLayoutFunctions.cpp

    r261907 r268919  
    8888}
    8989
    90 bool hasOverrideContainingBlockContentSizeForChild(const RenderBox& child, GridTrackSizingDirection direction)
     90bool hasOverridingContainingBlockContentSizeForChild(const RenderBox& child, GridTrackSizingDirection direction)
    9191{
    92     return direction == ForColumns ? child.hasOverrideContainingBlockContentLogicalWidth() : child.hasOverrideContainingBlockContentLogicalHeight();
     92    return direction == ForColumns ? child.hasOverridingContainingBlockContentLogicalWidth() : child.hasOverridingContainingBlockContentLogicalHeight();
    9393}
    9494
    95 Optional<LayoutUnit> overrideContainingBlockContentSizeForChild(const RenderBox& child, GridTrackSizingDirection direction)
     95Optional<LayoutUnit> overridingContainingBlockContentSizeForChild(const RenderBox& child, GridTrackSizingDirection direction)
    9696{
    97     return direction == ForColumns ? child.overrideContainingBlockContentLogicalWidth() : child.overrideContainingBlockContentLogicalHeight();
     97    return direction == ForColumns ? child.overridingContainingBlockContentLogicalWidth() : child.overridingContainingBlockContentLogicalHeight();
    9898}
    9999
  • trunk/Source/WebCore/rendering/GridLayoutFunctions.h

    r244115 r268919  
    4242bool isOrthogonalChild(const RenderGrid&, const RenderBox&);
    4343GridTrackSizingDirection flowAwareDirectionForChild(const RenderGrid&, const RenderBox&, GridTrackSizingDirection);
    44 bool hasOverrideContainingBlockContentSizeForChild(const RenderBox&, GridTrackSizingDirection);
    45 Optional<LayoutUnit> overrideContainingBlockContentSizeForChild(const RenderBox&, GridTrackSizingDirection);
     44bool hasOverridingContainingBlockContentSizeForChild(const RenderBox&, GridTrackSizingDirection);
     45Optional<LayoutUnit> overridingContainingBlockContentSizeForChild(const RenderBox&, GridTrackSizingDirection);
    4646
    4747}
  • trunk/Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp

    r268666 r268919  
    121121}
    122122
    123 static bool shouldClearOverrideContainingBlockContentSizeForChild(const RenderBox& child, GridTrackSizingDirection direction)
     123static bool shouldClearOverridingContainingBlockContentSizeForChild(const RenderBox& child, GridTrackSizingDirection direction)
    124124{
    125125    return hasRelativeOrIntrinsicSizeForChild(child, direction) || hasRelativeMarginOrPaddingForChild(child, direction);
    126126}
    127127
    128 static void setOverrideContainingBlockContentSizeForChild(RenderBox& child, GridTrackSizingDirection direction, Optional<LayoutUnit> size)
     128static void setOverridingContainingBlockContentSizeForChild(RenderBox& child, GridTrackSizingDirection direction, Optional<LayoutUnit> size)
    129129{
    130130    if (direction == ForColumns)
    131         child.setOverrideContainingBlockContentLogicalWidth(size);
     131        child.setOverridingContainingBlockContentLogicalWidth(size);
    132132    else
    133         child.setOverrideContainingBlockContentLogicalHeight(size);
     133        child.setOverridingContainingBlockContentLogicalHeight(size);
    134134}
    135135
     
    757757    // If |child| has a relative logical height, we shouldn't let it override its intrinsic height, which is
    758758    // what we are interested in here. Thus we need to set the block-axis override size to -1 (no possible resolution).
    759     if (shouldClearOverrideContainingBlockContentSizeForChild(child, ForRows)) {
    760         setOverrideContainingBlockContentSizeForChild(child, childBlockDirection, WTF::nullopt);
     759    if (shouldClearOverridingContainingBlockContentSizeForChild(child, ForRows)) {
     760        setOverridingContainingBlockContentSizeForChild(child, childBlockDirection, WTF::nullopt);
    761761        child.setNeedsLayout(MarkOnlyThis);
    762762    }
     
    764764    // We need to clear the stretched height to properly compute logical height during layout.
    765765    if (child.needsLayout())
    766         child.clearOverrideLogicalHeight();
     766        child.clearOverridingLogicalHeight();
    767767
    768768    child.layoutIfNeeded();
     
    779779    }
    780780
    781     if (updateOverrideContainingBlockContentSizeForChild(child, childInlineDirection))
     781    if (updateOverridingContainingBlockContentSizeForChild(child, childInlineDirection))
    782782        child.setNeedsLayout(MarkOnlyThis);
    783783    return logicalHeightForChild(child);
     
    793793    }
    794794
    795     if (updateOverrideContainingBlockContentSizeForChild(child, childInlineDirection))
     795    if (updateOverridingContainingBlockContentSizeForChild(child, childInlineDirection))
    796796        child.setNeedsLayout(MarkOnlyThis);
    797797    return logicalHeightForChild(child);
     
    900900}
    901901
    902 bool GridTrackSizingAlgorithmStrategy::updateOverrideContainingBlockContentSizeForChild(RenderBox& child, GridTrackSizingDirection direction, Optional<LayoutUnit> overrideSize) const
     902bool GridTrackSizingAlgorithmStrategy::updateOverridingContainingBlockContentSizeForChild(RenderBox& child, GridTrackSizingDirection direction, Optional<LayoutUnit> overrideSize) const
    903903{
    904904    if (!overrideSize)
    905905        overrideSize = m_algorithm.gridAreaBreadthForChild(child, direction);
    906     if (GridLayoutFunctions::hasOverrideContainingBlockContentSizeForChild(child, direction) && GridLayoutFunctions::overrideContainingBlockContentSizeForChild(child, direction) == overrideSize)
     906    if (GridLayoutFunctions::hasOverridingContainingBlockContentSizeForChild(child, direction) && GridLayoutFunctions::overridingContainingBlockContentSizeForChild(child, direction) == overrideSize)
    907907        return false;
    908908
    909     setOverrideContainingBlockContentSizeForChild(child, direction, overrideSize);
     909    setOverridingContainingBlockContentSizeForChild(child, direction, overrideSize);
    910910    return true;
    911911}
     
    917917    if (isRowAxis)
    918918        return child.computeLogicalWidthInFragmentUsing(MinSize, childMinSize, availableSize, *renderGrid(), nullptr) + GridLayoutFunctions::marginLogicalSizeForChild(*renderGrid(), childInlineDirection, child);
    919     bool overrideSizeHasChanged = updateOverrideContainingBlockContentSizeForChild(child, childInlineDirection, availableSize);
     919    bool overrideSizeHasChanged = updateOverridingContainingBlockContentSizeForChild(child, childInlineDirection, availableSize);
    920920    layoutGridItemForMinSizeComputation(child, overrideSizeHasChanged);
    921921    GridTrackSizingDirection childBlockDirection = GridLayoutFunctions::flowAwareDirectionForChild(*renderGrid(), child, ForRows);
     
    10511051    GridTrackSizingDirection flowAwareDirection = GridLayoutFunctions::flowAwareDirectionForChild(*renderGrid(), child, direction());
    10521052    if (hasRelativeMarginOrPaddingForChild(child, flowAwareDirection) || (direction() != childInlineDirection && hasRelativeOrIntrinsicSizeForChild(child, flowAwareDirection)))
    1053         setOverrideContainingBlockContentSizeForChild(child, direction(), indefiniteSize);
     1053        setOverridingContainingBlockContentSizeForChild(child, direction(), indefiniteSize);
    10541054    return GridTrackSizingAlgorithmStrategy::minLogicalSizeForChild(child, childMinSize, availableSize);
    10551055}
     
    10941094{
    10951095    GridTrackSizingDirection childInlineDirection = GridLayoutFunctions::flowAwareDirectionForChild(*renderGrid(), child, ForColumns);
    1096     if (direction() == childInlineDirection && child.needsLayout() && shouldClearOverrideContainingBlockContentSizeForChild(child, ForColumns))
    1097         setOverrideContainingBlockContentSizeForChild(child, childInlineDirection, LayoutUnit());
     1096    if (direction() == childInlineDirection && child.needsLayout() && shouldClearOverridingContainingBlockContentSizeForChild(child, ForColumns))
     1097        setOverridingContainingBlockContentSizeForChild(child, childInlineDirection, LayoutUnit());
    10981098    return GridTrackSizingAlgorithmStrategy::minContentForChild(child);
    10991099}
  • trunk/Source/WebCore/rendering/GridTrackSizingAlgorithm.h

    r267503 r268919  
    272272
    273273    LayoutUnit logicalHeightForChild(RenderBox&) const;
    274     bool updateOverrideContainingBlockContentSizeForChild(RenderBox&, GridTrackSizingDirection, Optional<LayoutUnit> = WTF::nullopt) const;
     274    bool updateOverridingContainingBlockContentSizeForChild(RenderBox&, GridTrackSizingDirection, Optional<LayoutUnit> = WTF::nullopt) const;
    275275
    276276    // GridTrackSizingAlgorithm accessors for subclasses.
  • trunk/Source/WebCore/rendering/RenderBlock.cpp

    r268666 r268919  
    17691769    ASSERT(!isAnonymousBlock());
    17701770
    1771     positioned.clearOverrideContainingBlockContentSize();
     1771    positioned.clearOverridingContainingBlockContentSize();
    17721772
    17731773    if (positioned.isRenderFragmentedFlow())
     
    24182418    }
    24192419   
    2420     // The preferred widths of flexbox children should never depend on override sizes. They should
     2420    // The preferred widths of flexbox children should never depend on overriding sizes. They should
    24212421    // always be computed without regard for any overrides that are present.
    2422     Optional<LayoutUnit> overrideHeight;
    2423     Optional<LayoutUnit> overrideWidth;
     2422    Optional<LayoutUnit> overridingHeight;
     2423    Optional<LayoutUnit> overridingWidth;
    24242424   
    24252425    if (child.isBox()) {
    24262426        auto& box = downcast<RenderBox>(child);
    24272427        if (box.isFlexItem()) {
    2428             if (box.hasOverrideLogicalHeight())
    2429                 overrideHeight = Optional<LayoutUnit>(box.overrideLogicalHeight());
    2430             if (box.hasOverrideLogicalWidth())
    2431                 overrideWidth = Optional<LayoutUnit>(box.overrideLogicalWidth());
    2432             box.clearOverrideContentSize();
     2428            if (box.hasOverridingLogicalHeight())
     2429                overridingHeight = Optional<LayoutUnit>(box.overridingLogicalHeight());
     2430            if (box.hasOverridingLogicalWidth())
     2431                overridingWidth = Optional<LayoutUnit>(box.overridingLogicalWidth());
     2432            box.clearOverridingContentSize();
    24332433        }
    24342434    }
     
    24392439    if (child.isBox()) {
    24402440        auto& box = downcast<RenderBox>(child);
    2441         if (overrideHeight)
    2442             box.setOverrideLogicalHeight(overrideHeight.value());
    2443         if (overrideWidth)
    2444             box.setOverrideLogicalWidth(overrideWidth.value());
     2441        if (overridingHeight)
     2442            box.setOverridingLogicalHeight(overridingHeight.value());
     2443        if (overridingWidth)
     2444            box.setOverridingLogicalWidth(overridingWidth.value());
    24452445    }
    24462446
     
    32203220    if (stretchedFlexHeight)
    32213221        availableHeight = stretchedFlexHeight;
    3222     else if (isGridItem() && hasOverrideLogicalHeight())
    3223         availableHeight = overrideLogicalHeight();
     3222    else if (isGridItem() && hasOverridingLogicalHeight())
     3223        availableHeight = overridingLogicalHeight();
    32243224    else if (styleToUse.logicalHeight().isFixed()) {
    32253225        LayoutUnit contentBoxHeight = adjustContentBoxLogicalHeightForBoxSizing((LayoutUnit)styleToUse.logicalHeight().value());
  • trunk/Source/WebCore/rendering/RenderBlockFlow.cpp

    r268798 r268919  
    30463046void RenderBlockFlow::fitBorderToLinesIfNeeded()
    30473047{
    3048     if (style().borderFit() == BorderFit::Border || hasOverrideLogicalWidth())
     3048    if (style().borderFit() == BorderFit::Border || hasOverridingLogicalWidth())
    30493049        return;
    30503050
     
    30653065        return;
    30663066
    3067     setOverrideLogicalWidth(newContentWidth + borderAndPaddingLogicalWidth());
     3067    setOverridingLogicalWidth(newContentWidth + borderAndPaddingLogicalWidth());
    30683068    layoutBlock(false);
    3069     clearOverrideLogicalWidth();
     3069    clearOverridingLogicalWidth();
    30703070}
    30713071
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r268850 r268919  
    9595
    9696typedef WTF::HashMap<const RenderBox*, LayoutUnit> OverrideSizeMap;
    97 static OverrideSizeMap* gOverrideLogicalHeightMap = nullptr;
    98 static OverrideSizeMap* gOverrideLogicalWidthMap = nullptr;
     97static OverrideSizeMap* gOverridingLogicalHeightMap = nullptr;
     98static OverrideSizeMap* gOverridingLogicalWidthMap = nullptr;
    9999
    100100// FIXME: We should store these based on physical direction.
    101101typedef WTF::HashMap<const RenderBox*, Optional<LayoutUnit>> OverrideOptionalSizeMap;
    102 static OverrideOptionalSizeMap* gOverrideContainingBlockContentLogicalHeightMap = nullptr;
    103 static OverrideOptionalSizeMap* gOverrideContainingBlockContentLogicalWidthMap = nullptr;
     102static OverrideOptionalSizeMap* gOverridingContainingBlockContentLogicalHeightMap = nullptr;
     103static OverrideOptionalSizeMap* gOverridingContainingBlockContentLogicalWidthMap = nullptr;
    104104
    105105// Size of border belt for autoscroll. When mouse pointer in border belt,
     
    151151        frame().eventHandler().stopAutoscrollTimer(true);
    152152
    153     clearOverrideContentSize();
    154     clearOverrideContainingBlockContentSize();
     153    clearOverridingContentSize();
     154    clearOverridingContainingBlockContentSize();
    155155
    156156    RenderBlock::removePercentHeightDescendantIfNeeded(*this);
     
    408408    // any override content size set by our container, because it would likely be incorrect after the style change.
    409409    if (isOutOfFlowPositioned() && parent() && parent()->style().isDisplayFlexibleOrGridBox())
    410         clearOverrideContentSize();
     410        clearOverridingContentSize();
    411411
    412412#if ENABLE(LAYOUT_FORMATTING_CONTEXT)
     
    10891089}
    10901090
    1091 bool RenderBox::hasOverrideLogicalHeight() const
    1092 {
    1093     return gOverrideLogicalHeightMap && gOverrideLogicalHeightMap->contains(this);
    1094 }
    1095 
    1096 bool RenderBox::hasOverrideLogicalWidth() const
    1097 {
    1098     return gOverrideLogicalWidthMap && gOverrideLogicalWidthMap->contains(this);
    1099 }
    1100 
    1101 void RenderBox::setOverrideLogicalHeight(LayoutUnit height)
    1102 {
    1103     if (!gOverrideLogicalHeightMap)
    1104         gOverrideLogicalHeightMap = new OverrideSizeMap();
    1105     gOverrideLogicalHeightMap->set(this, height);
    1106 }
    1107 
    1108 void RenderBox::setOverrideLogicalWidth(LayoutUnit width)
    1109 {
    1110     if (!gOverrideLogicalWidthMap)
    1111         gOverrideLogicalWidthMap = new OverrideSizeMap();
    1112     gOverrideLogicalWidthMap->set(this, width);
    1113 }
    1114 
    1115 void RenderBox::clearOverrideLogicalHeight()
    1116 {
    1117     if (gOverrideLogicalHeightMap)
    1118         gOverrideLogicalHeightMap->remove(this);
    1119 }
    1120 
    1121 void RenderBox::clearOverrideLogicalWidth()
    1122 {
    1123     if (gOverrideLogicalWidthMap)
    1124         gOverrideLogicalWidthMap->remove(this);
    1125 }
    1126 
    1127 void RenderBox::clearOverrideContentSize()
    1128 {
    1129     clearOverrideLogicalHeight();
    1130     clearOverrideLogicalWidth();
    1131 }
    1132 
    1133 LayoutUnit RenderBox::overrideLogicalWidth() const
    1134 {
    1135     ASSERT(hasOverrideLogicalWidth());
    1136     return gOverrideLogicalWidthMap->get(this);
    1137 }
    1138 
    1139 LayoutUnit RenderBox::overrideLogicalHeight() const
    1140 {
    1141     ASSERT(hasOverrideLogicalHeight());
    1142     return gOverrideLogicalHeightMap->get(this);
    1143 }
    1144 
    1145 Optional<LayoutUnit> RenderBox::overrideContainingBlockContentWidth() const
    1146 {
    1147     ASSERT(hasOverrideContainingBlockContentWidth());
     1091bool RenderBox::hasOverridingLogicalHeight() const
     1092{
     1093    return gOverridingLogicalHeightMap && gOverridingLogicalHeightMap->contains(this);
     1094}
     1095
     1096bool RenderBox::hasOverridingLogicalWidth() const
     1097{
     1098    return gOverridingLogicalWidthMap && gOverridingLogicalWidthMap->contains(this);
     1099}
     1100
     1101void RenderBox::setOverridingLogicalHeight(LayoutUnit height)
     1102{
     1103    if (!gOverridingLogicalHeightMap)
     1104        gOverridingLogicalHeightMap = new OverrideSizeMap();
     1105    gOverridingLogicalHeightMap->set(this, height);
     1106}
     1107
     1108void RenderBox::setOverridingLogicalWidth(LayoutUnit width)
     1109{
     1110    if (!gOverridingLogicalWidthMap)
     1111        gOverridingLogicalWidthMap = new OverrideSizeMap();
     1112    gOverridingLogicalWidthMap->set(this, width);
     1113}
     1114
     1115void RenderBox::clearOverridingLogicalHeight()
     1116{
     1117    if (gOverridingLogicalHeightMap)
     1118        gOverridingLogicalHeightMap->remove(this);
     1119}
     1120
     1121void RenderBox::clearOverridingLogicalWidth()
     1122{
     1123    if (gOverridingLogicalWidthMap)
     1124        gOverridingLogicalWidthMap->remove(this);
     1125}
     1126
     1127void RenderBox::clearOverridingContentSize()
     1128{
     1129    clearOverridingLogicalHeight();
     1130    clearOverridingLogicalWidth();
     1131}
     1132
     1133LayoutUnit RenderBox::overridingLogicalWidth() const
     1134{
     1135    ASSERT(hasOverridingLogicalWidth());
     1136    return gOverridingLogicalWidthMap->get(this);
     1137}
     1138
     1139LayoutUnit RenderBox::overridingLogicalHeight() const
     1140{
     1141    ASSERT(hasOverridingLogicalHeight());
     1142    return gOverridingLogicalHeightMap->get(this);
     1143}
     1144
     1145Optional<LayoutUnit> RenderBox::overridingContainingBlockContentWidth() const
     1146{
     1147    ASSERT(hasOverridingContainingBlockContentWidth());
    11481148    return containingBlock()->style().isHorizontalWritingMode()
    1149         ? gOverrideContainingBlockContentLogicalWidthMap->get(this)
    1150         : gOverrideContainingBlockContentLogicalHeightMap->get(this);
    1151 }
    1152 
    1153 Optional<LayoutUnit> RenderBox::overrideContainingBlockContentHeight() const
    1154 {
    1155     ASSERT(hasOverrideContainingBlockContentHeight());
     1149        ? gOverridingContainingBlockContentLogicalWidthMap->get(this)
     1150        : gOverridingContainingBlockContentLogicalHeightMap->get(this);
     1151}
     1152
     1153Optional<LayoutUnit> RenderBox::overridingContainingBlockContentHeight() const
     1154{
     1155    ASSERT(hasOverridingContainingBlockContentHeight());
    11561156    return containingBlock()->style().isHorizontalWritingMode()
    1157         ? gOverrideContainingBlockContentLogicalHeightMap->get(this)
    1158         : gOverrideContainingBlockContentLogicalWidthMap->get(this);
    1159 }
    1160 
    1161 bool RenderBox::hasOverrideContainingBlockContentWidth() const
     1157        ? gOverridingContainingBlockContentLogicalHeightMap->get(this)
     1158        : gOverridingContainingBlockContentLogicalWidthMap->get(this);
     1159}
     1160
     1161bool RenderBox::hasOverridingContainingBlockContentWidth() const
    11621162{
    11631163    RenderBlock* cb = containingBlock();
     
    11661166
    11671167    return cb->style().isHorizontalWritingMode()
    1168         ? gOverrideContainingBlockContentLogicalWidthMap && gOverrideContainingBlockContentLogicalWidthMap->contains(this)
    1169         : gOverrideContainingBlockContentLogicalHeightMap && gOverrideContainingBlockContentLogicalHeightMap->contains(this);
    1170 }
    1171 
    1172 bool RenderBox::hasOverrideContainingBlockContentHeight() const
     1168        ? gOverridingContainingBlockContentLogicalWidthMap && gOverridingContainingBlockContentLogicalWidthMap->contains(this)
     1169        : gOverridingContainingBlockContentLogicalHeightMap && gOverridingContainingBlockContentLogicalHeightMap->contains(this);
     1170}
     1171
     1172bool RenderBox::hasOverridingContainingBlockContentHeight() const
    11731173{
    11741174    RenderBlock* cb = containingBlock();
     
    11771177
    11781178    return cb->style().isHorizontalWritingMode()
    1179         ? gOverrideContainingBlockContentLogicalHeightMap && gOverrideContainingBlockContentLogicalHeightMap->contains(this)
    1180         : gOverrideContainingBlockContentLogicalHeightMap && gOverrideContainingBlockContentLogicalHeightMap->contains(this);
    1181 }
    1182 
    1183 Optional<LayoutUnit> RenderBox::overrideContainingBlockContentLogicalWidth() const
    1184 {
    1185     ASSERT(hasOverrideContainingBlockContentLogicalWidth());
    1186     return gOverrideContainingBlockContentLogicalWidthMap->get(this);
    1187 }
    1188 
    1189 Optional<LayoutUnit> RenderBox::overrideContainingBlockContentLogicalHeight() const
    1190 {
    1191     ASSERT(hasOverrideContainingBlockContentLogicalHeight());
    1192     return gOverrideContainingBlockContentLogicalHeightMap->get(this);
    1193 }
    1194 
    1195 bool RenderBox::hasOverrideContainingBlockContentLogicalWidth() const
    1196 {
    1197     return gOverrideContainingBlockContentLogicalWidthMap && gOverrideContainingBlockContentLogicalWidthMap->contains(this);
    1198 }
    1199 
    1200 bool RenderBox::hasOverrideContainingBlockContentLogicalHeight() const
    1201 {
    1202     return gOverrideContainingBlockContentLogicalHeightMap && gOverrideContainingBlockContentLogicalHeightMap->contains(this);
    1203 }
    1204 
    1205 void RenderBox::setOverrideContainingBlockContentLogicalWidth(Optional<LayoutUnit> logicalWidth)
    1206 {
    1207     if (!gOverrideContainingBlockContentLogicalWidthMap)
    1208         gOverrideContainingBlockContentLogicalWidthMap = new OverrideOptionalSizeMap;
    1209     gOverrideContainingBlockContentLogicalWidthMap->set(this, logicalWidth);
    1210 }
    1211 
    1212 void RenderBox::setOverrideContainingBlockContentLogicalHeight(Optional<LayoutUnit> logicalHeight)
    1213 {
    1214     if (!gOverrideContainingBlockContentLogicalHeightMap)
    1215         gOverrideContainingBlockContentLogicalHeightMap = new OverrideOptionalSizeMap;
    1216     gOverrideContainingBlockContentLogicalHeightMap->set(this, logicalHeight);
    1217 }
    1218 
    1219 void RenderBox::clearOverrideContainingBlockContentSize()
    1220 {
    1221     if (gOverrideContainingBlockContentLogicalWidthMap)
    1222         gOverrideContainingBlockContentLogicalWidthMap->remove(this);
    1223     clearOverrideContainingBlockContentLogicalHeight();
    1224 }
    1225 
    1226 void RenderBox::clearOverrideContainingBlockContentLogicalHeight()
    1227 {
    1228     if (gOverrideContainingBlockContentLogicalHeightMap)
    1229         gOverrideContainingBlockContentLogicalHeightMap->remove(this);
     1179        ? gOverridingContainingBlockContentLogicalHeightMap && gOverridingContainingBlockContentLogicalHeightMap->contains(this)
     1180        : gOverridingContainingBlockContentLogicalHeightMap && gOverridingContainingBlockContentLogicalHeightMap->contains(this);
     1181}
     1182
     1183Optional<LayoutUnit> RenderBox::overridingContainingBlockContentLogicalWidth() const
     1184{
     1185    ASSERT(hasOverridingContainingBlockContentLogicalWidth());
     1186    return gOverridingContainingBlockContentLogicalWidthMap->get(this);
     1187}
     1188
     1189Optional<LayoutUnit> RenderBox::overridingContainingBlockContentLogicalHeight() const
     1190{
     1191    ASSERT(hasOverridingContainingBlockContentLogicalHeight());
     1192    return gOverridingContainingBlockContentLogicalHeightMap->get(this);
     1193}
     1194
     1195bool RenderBox::hasOverridingContainingBlockContentLogicalWidth() const
     1196{
     1197    return gOverridingContainingBlockContentLogicalWidthMap && gOverridingContainingBlockContentLogicalWidthMap->contains(this);
     1198}
     1199
     1200bool RenderBox::hasOverridingContainingBlockContentLogicalHeight() const
     1201{
     1202    return gOverridingContainingBlockContentLogicalHeightMap && gOverridingContainingBlockContentLogicalHeightMap->contains(this);
     1203}
     1204
     1205void RenderBox::setOverridingContainingBlockContentLogicalWidth(Optional<LayoutUnit> logicalWidth)
     1206{
     1207    if (!gOverridingContainingBlockContentLogicalWidthMap)
     1208        gOverridingContainingBlockContentLogicalWidthMap = new OverrideOptionalSizeMap;
     1209    gOverridingContainingBlockContentLogicalWidthMap->set(this, logicalWidth);
     1210}
     1211
     1212void RenderBox::setOverridingContainingBlockContentLogicalHeight(Optional<LayoutUnit> logicalHeight)
     1213{
     1214    if (!gOverridingContainingBlockContentLogicalHeightMap)
     1215        gOverridingContainingBlockContentLogicalHeightMap = new OverrideOptionalSizeMap;
     1216    gOverridingContainingBlockContentLogicalHeightMap->set(this, logicalHeight);
     1217}
     1218
     1219void RenderBox::clearOverridingContainingBlockContentSize()
     1220{
     1221    if (gOverridingContainingBlockContentLogicalWidthMap)
     1222        gOverridingContainingBlockContentLogicalWidthMap->remove(this);
     1223    clearOverridingContainingBlockContentLogicalHeight();
     1224}
     1225
     1226void RenderBox::clearOverridingContainingBlockContentLogicalHeight()
     1227{
     1228    if (gOverridingContainingBlockContentLogicalHeightMap)
     1229        gOverridingContainingBlockContentLogicalHeightMap->remove(this);
    12301230}
    12311231
     
    19741974LayoutUnit RenderBox::containingBlockLogicalWidthForContent() const
    19751975{
    1976     if (hasOverrideContainingBlockContentLogicalWidth()) {
    1977         if (auto overrideLogicalWidth = overrideContainingBlockContentLogicalWidth())
    1978             return overrideLogicalWidth.value();
     1976    if (hasOverridingContainingBlockContentLogicalWidth()) {
     1977        if (auto width = overridingContainingBlockContentLogicalWidth())
     1978            return width.value();
    19791979    }
    19801980
     
    19861986LayoutUnit RenderBox::containingBlockLogicalHeightForContent(AvailableLogicalHeightType heightType) const
    19871987{
    1988     if (hasOverrideContainingBlockContentLogicalHeight()) {
    1989         if (auto overrideLogicalHeight = overrideContainingBlockContentLogicalHeight())
    1990             return overrideLogicalHeight.value();
     1988    if (hasOverridingContainingBlockContentLogicalHeight()) {
     1989        if (auto height = overridingContainingBlockContentLogicalHeight())
     1990            return height.value();
    19911991    }
    19921992
     
    20272027LayoutUnit RenderBox::perpendicularContainingBlockLogicalHeight() const
    20282028{
    2029     if (hasOverrideContainingBlockContentLogicalHeight()) {
    2030         if (auto overrideLogicalHeight = overrideContainingBlockContentLogicalHeight())
    2031             return overrideLogicalHeight.value();
     2029    if (hasOverridingContainingBlockContentLogicalHeight()) {
     2030        if (auto height = overridingContainingBlockContentLogicalHeight())
     2031            return height.value();
    20322032    }
    20332033
    20342034    RenderBlock* cb = containingBlock();
    2035     if (cb->hasOverrideLogicalHeight())
    2036         return cb->overrideContentLogicalHeight();
     2035    if (cb->hasOverridingLogicalHeight())
     2036        return cb->overridingContentLogicalHeight();
    20372037
    20382038    const RenderStyle& containingBlockStyle = cb->style();
     
    24402440    // FIXME: Account for block-flow in flexible boxes.
    24412441    // https://bugs.webkit.org/show_bug.cgi?id=46418
    2442     if (hasOverrideLogicalWidth() && (isRubyRun() || style().borderFit() == BorderFit::Lines || (parent()->isFlexibleBoxIncludingDeprecated()))) {
    2443         computedValues.m_extent = overrideLogicalWidth();
     2442    if (hasOverridingLogicalWidth() && (isRubyRun() || style().borderFit() == BorderFit::Lines || (parent()->isFlexibleBoxIncludingDeprecated()))) {
     2443        computedValues.m_extent = overridingLogicalWidth();
    24442444        return;
    24452445    }
     
    27832783void RenderBox::cacheIntrinsicContentLogicalHeightForFlexItem(LayoutUnit height) const
    27842784{
    2785     // FIXME: it should be enough with checking hasOverrideLogicalHeight() as this logic could be shared
     2785    // FIXME: it should be enough with checking hasOverridingLogicalHeight() as this logic could be shared
    27862786    // by any layout system using overrides like grid or flex. However this causes a never ending sequence of calls
    27872787    // between layoutBlock() <-> relayoutToAvoidWidows().
    2788     if (isFloatingOrOutOfFlowPositioned() || !parent() || !parent()->isFlexibleBox() || hasOverrideLogicalHeight())
     2788    if (isFloatingOrOutOfFlowPositioned() || !parent() || !parent()->isFlexibleBox() || hasOverridingLogicalHeight())
    27892789        return;
    27902790    downcast<RenderFlexibleBox>(parent())->setCachedChildIntrinsicContentLogicalHeight(*this, height);
     
    28472847        // FIXME: Account for block-flow in flexible boxes.
    28482848        // https://bugs.webkit.org/show_bug.cgi?id=46418
    2849         if (hasOverrideLogicalHeight() && (parent()->isFlexibleBoxIncludingDeprecated() || parent()->isRenderGrid())) {
    2850             h = Length(overrideLogicalHeight(), Fixed);
     2849        if (hasOverridingLogicalHeight() && (parent()->isFlexibleBoxIncludingDeprecated() || parent()->isRenderGrid())) {
     2850            h = Length(overridingLogicalHeight(), Fixed);
    28512851        } else if (treatAsReplaced)
    28522852            h = Length(computeReplacedLogicalHeight() + borderAndPaddingLogicalHeight(), Fixed);
     
    30323032    if (isHorizontal != cb->isHorizontalWritingMode())
    30333033        availableHeight = containingBlockChild->containingBlockLogicalWidthForContent();
    3034     else if (hasOverrideContainingBlockContentLogicalHeight())
    3035         availableHeight = overrideContainingBlockContentLogicalHeight();
     3034    else if (hasOverridingContainingBlockContentLogicalHeight())
     3035        availableHeight = overridingContainingBlockContentLogicalHeight();
    30363036    else if (is<RenderTableCell>(*cb)) {
    30373037        if (!skippedAutoHeightContainingBlock) {
     
    30393039            // don't care if the cell specified a height or not. We just always make ourselves
    30403040            // be a percentage of the cell's current content height.
    3041             if (!cb->hasOverrideLogicalHeight())
     3041            if (!cb->hasOverridingLogicalHeight())
    30423042                return tableCellShouldHaveZeroInitialSize(*cb, *this, scrollsOverflowY()) ? Optional<LayoutUnit>(0) : WTF::nullopt;
    30433043
    3044             availableHeight = cb->overrideLogicalHeight() - cb->computedCSSPaddingBefore() - cb->computedCSSPaddingAfter() - cb->borderBefore() - cb->borderAfter();
     3044            availableHeight = cb->overridingLogicalHeight() - cb->computedCSSPaddingBefore() - cb->computedCSSPaddingAfter() - cb->borderBefore() - cb->borderAfter();
    30453045        }
    30463046    } else
     
    30523052    LayoutUnit result = valueForLength(height, availableHeight.value() - rootMarginBorderPaddingHeight + (isTable() && isOutOfFlowPositioned() ? cb->paddingBefore() + cb->paddingAfter() : 0_lu));
    30533053   
    3054     // |overrideLogicalHeight| is the maximum height made available by the
     3054    // |overridingLogicalHeight| is the maximum height made available by the
    30553055    // cell to its percent height children when we decide they can determine the
    30563056    // height of the cell. If the percent height child is box-sizing:content-box
    30573057    // then we must subtract the border and padding from the cell's
    3058     // |availableHeight| (given by |overrideLogicalHeight|) to arrive
     3058    // |availableHeight| (given by |overridingLogicalHeight|) to arrive
    30593059    // at the child's computed height.
    3060     bool subtractBorderAndPadding = isTable() || (is<RenderTableCell>(*cb) && !skippedAutoHeightContainingBlock && cb->hasOverrideLogicalHeight());
     3060    bool subtractBorderAndPadding = isTable() || (is<RenderTableCell>(*cb) && !skippedAutoHeightContainingBlock && cb->hasOverridingLogicalHeight());
    30613061    if (subtractBorderAndPadding) {
    30623062        result -= borderAndPaddingLogicalHeight();
     
    31973197                if (block->isFlexItem())
    31983198                    stretchedHeight = downcast<RenderFlexibleBox>(block->parent())->childLogicalHeightForPercentageResolution(*block);
    3199                 else if (block->isGridItem() && block->hasOverrideLogicalHeight())
    3200                     stretchedHeight = block->overrideLogicalHeight() - block->borderAndPaddingLogicalHeight();
     3199                else if (block->isGridItem() && block->hasOverridingLogicalHeight())
     3200                    stretchedHeight = block->overridingLogicalHeight() - block->borderAndPaddingLogicalHeight();
    32013201            }
    32023202
     
    32633263    // height, and then when we lay out again we'll use the calculation below.
    32643264    if (isTableCell() && (h.isAuto() || h.isPercentOrCalculated())) {
    3265         if (hasOverrideLogicalHeight())
    3266             return overrideLogicalHeight() - computedCSSPaddingBefore() - computedCSSPaddingAfter() - borderBefore() - borderAfter();
     3265        if (hasOverridingLogicalHeight())
     3266            return overridingLogicalHeight() - computedCSSPaddingBefore() - computedCSSPaddingAfter() - borderBefore() - borderAfter();
    32673267        return logicalHeight() - borderAndPaddingLogicalHeight();
    32683268    }
     
    33333333        return containingBlockLogicalHeightForPositioned(containingBlock, false);
    33343334
    3335     if (hasOverrideContainingBlockContentLogicalWidth()) {
    3336         if (auto overrideLogicalWidth = overrideContainingBlockContentLogicalWidth())
    3337             return overrideLogicalWidth.value();
     3335    if (hasOverridingContainingBlockContentLogicalWidth()) {
     3336        if (auto width = overridingContainingBlockContentLogicalWidth())
     3337            return width.value();
    33383338    }
    33393339
     
    33983398        return containingBlockLogicalWidthForPositioned(containingBlock, nullptr, false);
    33993399
    3400     if (hasOverrideContainingBlockContentLogicalHeight()) {
    3401         if (auto overrideLogicalHeight = overrideContainingBlockContentLogicalHeight())
    3402             return overrideLogicalHeight.value();
     3400    if (hasOverridingContainingBlockContentLogicalHeight()) {
     3401        if (auto height = overridingContainingBlockContentLogicalHeight())
     3402            return height.value();
    34033403    }
    34043404
  • trunk/Source/WebCore/rendering/RenderBox.h

    r268666 r268919  
    308308    LayoutUnit maxPreferredLogicalWidth() const override;
    309309
    310     LayoutUnit overrideLogicalWidth() const;
    311     LayoutUnit overrideLogicalHeight() const;
    312     bool hasOverrideLogicalHeight() const;
    313     bool hasOverrideLogicalWidth() const;
    314     void setOverrideLogicalHeight(LayoutUnit);
    315     void setOverrideLogicalWidth(LayoutUnit);
    316     void clearOverrideContentSize();
    317     void clearOverrideLogicalHeight();
    318     void clearOverrideLogicalWidth();
    319 
    320     LayoutUnit overrideContentLogicalWidth() const { return overrideLogicalWidth() - borderAndPaddingLogicalWidth() - scrollbarLogicalWidth(); }
    321     LayoutUnit overrideContentLogicalHeight() const { return overrideLogicalHeight() - borderAndPaddingLogicalHeight() - scrollbarLogicalHeight(); }
    322 
    323     Optional<LayoutUnit> overrideContainingBlockContentWidth() const override;
    324     Optional<LayoutUnit> overrideContainingBlockContentHeight() const override;
    325     bool hasOverrideContainingBlockContentWidth() const override;
    326     bool hasOverrideContainingBlockContentHeight() const override;
    327     Optional<LayoutUnit> overrideContainingBlockContentLogicalWidth() const;
    328     Optional<LayoutUnit> overrideContainingBlockContentLogicalHeight() const;
    329     bool hasOverrideContainingBlockContentLogicalWidth() const;
    330     bool hasOverrideContainingBlockContentLogicalHeight() const;
    331     void setOverrideContainingBlockContentLogicalWidth(Optional<LayoutUnit>);
    332     void setOverrideContainingBlockContentLogicalHeight(Optional<LayoutUnit>);
    333     void clearOverrideContainingBlockContentSize();
    334     void clearOverrideContainingBlockContentLogicalHeight();
     310    LayoutUnit overridingLogicalWidth() const;
     311    LayoutUnit overridingLogicalHeight() const;
     312    bool hasOverridingLogicalHeight() const;
     313    bool hasOverridingLogicalWidth() const;
     314    void setOverridingLogicalHeight(LayoutUnit);
     315    void setOverridingLogicalWidth(LayoutUnit);
     316    void clearOverridingContentSize();
     317    void clearOverridingLogicalHeight();
     318    void clearOverridingLogicalWidth();
     319
     320    LayoutUnit overridingContentLogicalWidth() const { return overridingLogicalWidth() - borderAndPaddingLogicalWidth() - scrollbarLogicalWidth(); }
     321    LayoutUnit overridingContentLogicalHeight() const { return overridingLogicalHeight() - borderAndPaddingLogicalHeight() - scrollbarLogicalHeight(); }
     322
     323    Optional<LayoutUnit> overridingContainingBlockContentWidth() const override;
     324    Optional<LayoutUnit> overridingContainingBlockContentHeight() const override;
     325    bool hasOverridingContainingBlockContentWidth() const override;
     326    bool hasOverridingContainingBlockContentHeight() const override;
     327    Optional<LayoutUnit> overridingContainingBlockContentLogicalWidth() const;
     328    Optional<LayoutUnit> overridingContainingBlockContentLogicalHeight() const;
     329    bool hasOverridingContainingBlockContentLogicalWidth() const;
     330    bool hasOverridingContainingBlockContentLogicalHeight() const;
     331    void setOverridingContainingBlockContentLogicalWidth(Optional<LayoutUnit>);
     332    void setOverridingContainingBlockContentLogicalHeight(Optional<LayoutUnit>);
     333    void clearOverridingContainingBlockContentSize();
     334    void clearOverridingContainingBlockContentLogicalHeight();
    335335
    336336    LayoutSize offsetFromContainer(RenderElement&, const LayoutPoint&, bool* offsetDependsOnPoint = nullptr) const override;
  • trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp

    r267571 r268919  
    281281    }
    282282   
    283     if (thisBox && thisBox->isGridItem() && thisBox->hasOverrideContainingBlockContentLogicalHeight())
     283    if (thisBox && thisBox->isGridItem() && thisBox->hasOverridingContainingBlockContentLogicalHeight())
    284284        return false;
    285285   
     
    349349    // https://drafts.csswg.org/css-grid/#grid-item-sizing
    350350    if (!style().left().isAuto() || !style().right().isAuto()) {
    351         LayoutUnit availableWidth = hasOverrideContainingBlockContentWidth()
    352             ? overrideContainingBlockContentWidth().valueOr(LayoutUnit()) : containingBlock()->availableWidth();
     351        LayoutUnit availableWidth = hasOverridingContainingBlockContentWidth()
     352            ? overridingContainingBlockContentWidth().valueOr(LayoutUnit()) : containingBlock()->availableWidth();
    353353        if (!style().left().isAuto()) {
    354354            if (!style().right().isAuto() && !containingBlock()->style().isLeftToRightDirection())
     
    372372            || !containingBlock()->hasAutoHeightOrContainingBlockWithAutoHeight()
    373373            || containingBlock()->stretchesToViewport()
    374             || hasOverrideContainingBlockContentHeight())) {
     374            || hasOverridingContainingBlockContentHeight())) {
    375375        // FIXME: The computation of the available height is repeated later for "bottom".
    376376        // We could refactor this and move it to some common code for both ifs, however moving it outside of the ifs
    377377        // is not possible as it'd cause performance regressions.
    378378        offset.expand(0_lu, valueForLength(style().top(), !style().top().isFixed()
    379             ? (hasOverrideContainingBlockContentHeight() ? overrideContainingBlockContentHeight().valueOr(0_lu) : containingBlock()->availableHeight())
     379            ? (hasOverridingContainingBlockContentHeight() ? overridingContainingBlockContentHeight().valueOr(0_lu) : containingBlock()->availableHeight())
    380380            : LayoutUnit()));
    381381    } else if (!style().bottom().isAuto()
     
    383383            || !containingBlock()->hasAutoHeightOrContainingBlockWithAutoHeight()
    384384            || containingBlock()->stretchesToViewport()
    385             || hasOverrideContainingBlockContentHeight())) {
     385            || hasOverridingContainingBlockContentHeight())) {
    386386        // FIXME: Check comment above for "top", it applies here too.
    387387        offset.expand(0_lu, -valueForLength(style().bottom(), !style().bottom().isFixed()
    388             ? (hasOverrideContainingBlockContentHeight() ? overrideContainingBlockContentHeight().valueOr(0_lu) : containingBlock()->availableHeight())
     388            ? (hasOverridingContainingBlockContentHeight() ? overridingContainingBlockContentHeight().valueOr(0_lu) : containingBlock()->availableHeight())
    389389            : LayoutUnit()));
    390390    }
  • trunk/Source/WebCore/rendering/RenderBoxModelObject.h

    r256196 r268919  
    234234    bool hasRunningAcceleratedAnimations() const;
    235235
    236     virtual Optional<LayoutUnit> overrideContainingBlockContentWidth() const { ASSERT_NOT_REACHED(); return -1_lu; }
    237     virtual Optional<LayoutUnit> overrideContainingBlockContentHeight() const { ASSERT_NOT_REACHED(); return -1_lu; }
    238     virtual bool hasOverrideContainingBlockContentWidth() const { return false; }
    239     virtual bool hasOverrideContainingBlockContentHeight() const { return false; }
     236    virtual Optional<LayoutUnit> overridingContainingBlockContentWidth() const { ASSERT_NOT_REACHED(); return -1_lu; }
     237    virtual Optional<LayoutUnit> overridingContainingBlockContentHeight() const { ASSERT_NOT_REACHED(); return -1_lu; }
     238    virtual bool hasOverridingContainingBlockContentWidth() const { return false; }
     239    virtual bool hasOverridingContainingBlockContentHeight() const { return false; }
    240240
    241241protected:
  • trunk/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp

    r268666 r268919  
    154154static LayoutUnit widthForChild(RenderBox* child)
    155155{
    156     if (child->hasOverrideLogicalWidth())
    157         return child->overrideLogicalWidth();
     156    if (child->hasOverridingLogicalWidth())
     157        return child->overridingLogicalWidth();
    158158    return child->logicalWidth();
    159159}
     
    161161static LayoutUnit heightForChild(RenderBox* child)
    162162{
    163     if (child->hasOverrideLogicalHeight())
    164         return child->overrideLogicalHeight();
     163    if (child->hasOverridingLogicalHeight())
     164        return child->overridingLogicalHeight();
    165165    return child->logicalHeight();
    166166}
     
    368368            // We always have to lay out flexible objects again, since the flex distribution
    369369            // may have changed, and we need to reallocate space.
    370             child->clearOverrideContentSize();
     370            child->clearOverridingContentSize();
    371371            if (!relayoutChildren)
    372372                child->setChildNeedsLayout(MarkOnlyThis);
     
    596596                            LayoutUnit spaceAdd = LayoutUnit(spaceAvailableThisPass * (child->style().boxFlex() / totalFlex));
    597597                            if (spaceAdd) {
    598                                 child->setOverrideLogicalWidth(widthForChild(child) + spaceAdd);
     598                                child->setOverridingLogicalWidth(widthForChild(child) + spaceAdd);
    599599                                flexingChildren = true;
    600600                                relayoutChildren = true;
     
    613613                        for (RenderBox* child = iterator.first(); child && groupRemainingSpace; child = iterator.next()) {
    614614                            if (allowedChildFlex(child, expanding, i)) {
    615                                 child->setOverrideLogicalWidth(widthForChild(child) + spaceAdd);
     615                                child->setOverridingLogicalWidth(widthForChild(child) + spaceAdd);
    616616                                flexingChildren = true;
    617617                                relayoutChildren = true;
     
    853853                            LayoutUnit spaceAdd { spaceAvailableThisPass * (child->style().boxFlex() / totalFlex) };
    854854                            if (spaceAdd) {
    855                                 child->setOverrideLogicalHeight(heightForChild(child) + spaceAdd);
     855                                child->setOverridingLogicalHeight(heightForChild(child) + spaceAdd);
    856856                                flexingChildren = true;
    857857                                relayoutChildren = true;
     
    870870                        for (RenderBox* child = iterator.first(); child && groupRemainingSpace; child = iterator.next()) {
    871871                            if (allowedChildFlex(child, expanding, i)) {
    872                                 child->setOverrideLogicalHeight(heightForChild(child) + spaceAdd);
     872                                child->setOverridingLogicalHeight(heightForChild(child) + spaceAdd);
    873873                                flexingChildren = true;
    874874                                relayoutChildren = true;
     
    948948            continue;
    949949
    950         child->clearOverrideContentSize();
     950        child->clearOverridingContentSize();
    951951        if (relayoutChildren || (child->isReplaced() && (child->style().width().isPercentOrCalculated() || child->style().height().isPercentOrCalculated()))
    952952            || (child->style().height().isAuto() && is<RenderBlockFlow>(*child))) {
     
    985985
    986986        child->setChildNeedsLayout(MarkOnlyThis);
    987         child->setOverrideLogicalHeight(newHeight);
     987        child->setOverridingLogicalHeight(newHeight);
    988988        child->layoutIfNeeded();
    989989
     
    10501050            continue;
    10511051
    1052         child->clearOverrideContentSize();
     1052        child->clearOverridingContentSize();
    10531053        if ((child->isReplaced() && (child->style().width().isPercentOrCalculated() || child->style().height().isPercentOrCalculated()))
    10541054            || (child->style().height().isAuto() && is<RenderBlockFlow>(*child))) {
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp

    r268666 r268919  
    481481
    482482    // Temporarily clear potential overrides to compute the logical width otherwise it'll return the override size.
    483     bool childHasOverrideWidth = child.hasOverrideLogicalWidth();
    484     auto overrideWidth = childHasOverrideWidth ? child.overrideLogicalWidth() : -1_lu;
     483    bool childHasOverrideWidth = child.hasOverridingLogicalWidth();
     484    auto overrideWidth = childHasOverrideWidth ? child.overridingLogicalWidth() : -1_lu;
    485485    if (childHasOverrideWidth)
    486         const_cast<RenderBox*>(&child)->clearOverrideLogicalWidth();
     486        const_cast<RenderBox*>(&child)->clearOverridingLogicalWidth();
    487487    LogicalExtentComputedValues values;
    488488    child.computeLogicalWidthInFragment(values);
    489489    if (childHasOverrideWidth)
    490         const_cast<RenderBox*>(&child)->setOverrideLogicalWidth(overrideWidth);
     490        const_cast<RenderBox*>(&child)->setOverridingLogicalWidth(overrideWidth);
    491491    return values.m_extent;
    492492}
     
    845845LayoutUnit RenderFlexibleBox::computeInnerFlexBaseSizeForChild(RenderBox& child, LayoutUnit mainAxisBorderAndPadding, bool relayoutChildren)
    846846{
    847     child.clearOverrideContentSize();
     847    child.clearOverridingContentSize();
    848848   
    849849    Length flexBasis = flexBasisForChild(child);
     
    11701170
    11711171    // Here we implement https://drafts.csswg.org/css-flexbox/#algo-stretch
    1172     if (child.hasOverrideLogicalHeight())
    1173         return child.overrideContentLogicalHeight();
     1172    if (child.hasOverridingLogicalHeight())
     1173        return child.overridingContentLogicalHeight();
    11741174
    11751175    // We don't currently implement the optimization from
     
    11911191        return WTF::nullopt;
    11921192
    1193     return child.hasOverrideLogicalHeight() ? Optional<LayoutUnit>(child.overrideContentLogicalHeight()) : WTF::nullopt;
     1193    return child.hasOverridingLogicalHeight() ? Optional<LayoutUnit>(child.overridingContentLogicalHeight()) : WTF::nullopt;
    11941194}
    11951195
     
    12321232        if (child.needsLayout() || !m_intrinsicSizeAlongMainAxis.contains(&child)) {
    12331233            if (isHorizontalWritingMode() == child.isHorizontalWritingMode())
    1234                 child.setOverrideContainingBlockContentLogicalHeight(WTF::nullopt);
     1234                child.setOverridingContainingBlockContentLogicalHeight(WTF::nullopt);
    12351235            else
    1236                 child.setOverrideContainingBlockContentLogicalWidth(WTF::nullopt);
    1237             child.clearOverrideContentSize();
     1236                child.setOverridingContainingBlockContentLogicalWidth(WTF::nullopt);
     1237            child.clearOverridingContentSize();
    12381238            child.setChildNeedsLayout(MarkOnlyThis);
    12391239            child.layoutIfNeeded();
    12401240            cacheChildMainSize(child);
    12411241            relayoutChildren = false;
    1242             child.clearOverrideContainingBlockContentSize();
     1242            child.clearOverridingContainingBlockContentSize();
    12431243        }
    12441244    }
     
    14251425{
    14261426    if (hasOrthogonalFlow(child))
    1427         child.setOverrideLogicalHeight(childPreferredSize + child.borderAndPaddingLogicalHeight());
     1427        child.setOverridingLogicalHeight(childPreferredSize + child.borderAndPaddingLogicalHeight());
    14281428    else
    1429         child.setOverrideLogicalWidth(childPreferredSize + child.borderAndPaddingLogicalWidth());
     1429        child.setOverridingLogicalWidth(childPreferredSize + child.borderAndPaddingLogicalWidth());
    14301430}
    14311431
     
    18841884            childNeedsRelayout = true;
    18851885        }
    1886         if (childNeedsRelayout || !child.hasOverrideLogicalHeight())
    1887             child.setOverrideLogicalHeight(desiredLogicalHeight);
     1886        if (childNeedsRelayout || !child.hasOverridingLogicalHeight())
     1887            child.setOverridingLogicalHeight(desiredLogicalHeight);
    18881888        if (childNeedsRelayout) {
    18891889            SetForScope<bool> resetChildLogicalHeight(m_shouldResetChildLogicalHeightBeforeLayout, true);
     
    19061906       
    19071907        if (childWidth != child.logicalWidth()) {
    1908             child.setOverrideLogicalWidth(childWidth);
     1908            child.setOverridingLogicalWidth(childWidth);
    19091909            child.setChildNeedsLayout(MarkOnlyThis);
    19101910            child.layoutIfNeeded();
  • trunk/Source/WebCore/rendering/RenderFullScreen.cpp

    r252724 r268919  
    172172            // lying around on the child.
    173173            if (is<RenderBox>(*child))
    174                 downcast<RenderBox>(*child).clearOverrideContentSize();
     174                downcast<RenderBox>(*child).clearOverridingContentSize();
    175175            auto childToMove = builder.detach(*child->parent(), *child);
    176176            builder.attach(*parent(), WTFMove(childToMove), this);
  • trunk/Source/WebCore/rendering/RenderGrid.cpp

    r268666 r268919  
    194194        // FIXME: We should use RenderBlock::hasDefiniteLogicalHeight() but it does not work for positioned stuff.
    195195        // FIXME: Consider caching the hasDefiniteLogicalHeight value throughout the layout.
    196         bool hasDefiniteLogicalHeight = hasOverrideLogicalHeight() || computeContentLogicalHeight(MainOrPreferredSize, style().logicalHeight(), WTF::nullopt);
     196        bool hasDefiniteLogicalHeight = hasOverridingLogicalHeight() || computeContentLogicalHeight(MainOrPreferredSize, style().logicalHeight(), WTF::nullopt);
    197197
    198198        m_hasAnyOrthogonalItem = false;
     
    203203            // clear any override height set previously, so it doesn't interfere in current layout
    204204            // execution. Grid never uses the override width, that's why we don't need to clear  it.
    205             child->clearOverrideLogicalHeight();
     205            child->clearOverridingLogicalHeight();
    206206
    207207            // We may need to repeat the track sizing in case of any grid item was orthogonal.
     
    611611        // Grid items should use the grid area sizes instead of the containing block (grid container)
    612612        // sizes, we initialize the overrides here if needed to ensure it.
    613         if (!child->hasOverrideContainingBlockContentLogicalWidth())
    614             child->setOverrideContainingBlockContentLogicalWidth(LayoutUnit());
    615         if (!child->hasOverrideContainingBlockContentLogicalHeight())
    616             child->setOverrideContainingBlockContentLogicalHeight(LayoutUnit(-1));
     613        if (!child->hasOverridingContainingBlockContentLogicalWidth())
     614            child->setOverridingContainingBlockContentLogicalWidth(LayoutUnit());
     615        if (!child->hasOverridingContainingBlockContentLogicalHeight())
     616            child->setOverridingContainingBlockContentLogicalHeight(LayoutUnit(-1));
    617617
    618618        GridArea area = grid.gridItemArea(*child);
     
    903903{
    904904    if (direction == ForColumns)
    905         return !child.hasOverrideContainingBlockContentLogicalWidth() || child.overrideContainingBlockContentLogicalWidth() != size.width();
    906     return !child.hasOverrideContainingBlockContentLogicalHeight() || child.overrideContainingBlockContentLogicalHeight() != size.height();
     905        return !child.hasOverridingContainingBlockContentLogicalWidth() || child.overridingContainingBlockContentLogicalWidth() != size.width();
     906    return !child.hasOverridingContainingBlockContentLogicalHeight() || child.overridingContainingBlockContentLogicalHeight() != size.height();
    907907}
    908908
     
    921921        child.setNeedsLayout(MarkOnlyThis);
    922922
    923     child.setOverrideContainingBlockContentLogicalWidth(gridAreaLogicalSize.width());
    924     child.setOverrideContainingBlockContentLogicalHeight(gridAreaLogicalSize.height());
     923    child.setOverridingContainingBlockContentLogicalWidth(gridAreaLogicalSize.width());
     924    child.setOverridingContainingBlockContentLogicalHeight(gridAreaLogicalSize.height());
    925925}
    926926
     
    987987    LayoutUnit rowBreadth = gridAreaBreadthForOutOfFlowChild(child, ForRows);
    988988
    989     child.setOverrideContainingBlockContentLogicalWidth(columnBreadth);
    990     child.setOverrideContainingBlockContentLogicalHeight(rowBreadth);
     989    child.setOverridingContainingBlockContentLogicalWidth(columnBreadth);
     990    child.setOverridingContainingBlockContentLogicalHeight(rowBreadth);
    991991
    992992    // Mark for layout as we're resetting the position before and we relay in generic layout logic
     
    11261126void RenderGrid::applyStretchAlignmentToChildIfNeeded(RenderBox& child)
    11271127{
    1128     ASSERT(child.overrideContainingBlockContentLogicalHeight());
     1128    ASSERT(child.overridingContainingBlockContentLogicalHeight());
    11291129
    11301130    // We clear height override values because we will decide now whether it's allowed or
    11311131    // not, evaluating the conditions which might have changed since the old values were set.
    1132     child.clearOverrideLogicalHeight();
     1132    child.clearOverridingLogicalHeight();
    11331133
    11341134    GridTrackSizingDirection childBlockDirection = GridLayoutFunctions::flowAwareDirectionForChild(*this, child, ForRows);
     
    11361136    bool allowedToStretchChildBlockSize = blockFlowIsColumnAxis ? allowedToStretchChildAlongColumnAxis(child) : allowedToStretchChildAlongRowAxis(child);
    11371137    if (allowedToStretchChildBlockSize) {
    1138         LayoutUnit stretchedLogicalHeight = availableAlignmentSpaceForChildBeforeStretching(GridLayoutFunctions::overrideContainingBlockContentSizeForChild(child, childBlockDirection).value(), child);
     1138        LayoutUnit stretchedLogicalHeight = availableAlignmentSpaceForChildBeforeStretching(GridLayoutFunctions::overridingContainingBlockContentSizeForChild(child, childBlockDirection).value(), child);
    11391139        LayoutUnit desiredLogicalHeight = child.constrainLogicalHeightByMinMax(stretchedLogicalHeight, -1_lu);
    1140         child.setOverrideLogicalHeight(desiredLogicalHeight);
     1140        child.setOverridingLogicalHeight(desiredLogicalHeight);
    11411141        if (desiredLogicalHeight != child.logicalHeight()) {
    11421142            // FIXME: Can avoid laying out here in some cases. See https://webkit.org/b/87905.
     
    11801180        marginLogicalWidth += child.marginEnd();
    11811181
    1182     LayoutUnit availableAlignmentSpace = child.overrideContainingBlockContentLogicalWidth().value() - child.logicalWidth() - marginLogicalWidth;
     1182    LayoutUnit availableAlignmentSpace = child.overridingContainingBlockContentLogicalWidth().value() - child.logicalWidth() - marginLogicalWidth;
    11831183    if (availableAlignmentSpace <= 0)
    11841184        return;
     
    12111211        marginLogicalHeight += child.marginAfter();
    12121212
    1213     LayoutUnit availableAlignmentSpace = child.overrideContainingBlockContentLogicalHeight().value() - child.logicalHeight() - marginLogicalHeight;
     1213    LayoutUnit availableAlignmentSpace = child.overridingContainingBlockContentLogicalHeight().value() - child.logicalHeight() - marginLogicalHeight;
    12141214    if (availableAlignmentSpace <= 0)
    12151215        return;
     
    15921592{
    15931593    ASSERT(child.isOutOfFlowPositioned());
    1594     ASSERT(GridLayoutFunctions::hasOverrideContainingBlockContentSizeForChild(child, direction));
    1595     LayoutUnit trackBreadth = GridLayoutFunctions::overrideContainingBlockContentSizeForChild(child, direction).value();
     1594    ASSERT(GridLayoutFunctions::hasOverridingContainingBlockContentSizeForChild(child, direction));
     1595    LayoutUnit trackBreadth = GridLayoutFunctions::overridingContainingBlockContentSizeForChild(child, direction).value();
    15961596    bool isRowAxis = direction == ForColumns;
    15971597    auto& outOfFlowItemLine = isRowAxis ? m_outOfFlowItemColumn : m_outOfFlowItemRow;
  • trunk/Source/WebCore/rendering/RenderRubyBase.cpp

    r268666 r268919  
    6868void RenderRubyBase::adjustInlineDirectionLineBounds(int expansionOpportunityCount, float& logicalLeft, float& logicalWidth) const
    6969{
    70     if (rubyRun()->hasOverrideLogicalWidth() && firstRootBox() && !firstRootBox()->nextRootBox()) {
     70    if (rubyRun()->hasOverridingLogicalWidth() && firstRootBox() && !firstRootBox()->nextRootBox()) {
    7171        logicalLeft += m_initialOffset;
    7272        logicalWidth -= 2 * m_initialOffset;
     
    7474    }
    7575
    76     LayoutUnit maxPreferredLogicalWidth = rubyRun() && rubyRun()->hasOverrideLogicalWidth() ? rubyRun()->overrideLogicalWidth() : this->maxPreferredLogicalWidth();
     76    LayoutUnit maxPreferredLogicalWidth = rubyRun() && rubyRun()->hasOverridingLogicalWidth() ? rubyRun()->overridingLogicalWidth() : this->maxPreferredLogicalWidth();
    7777    if (maxPreferredLogicalWidth >= logicalWidth)
    7878        return;
  • trunk/Source/WebCore/rendering/RenderTable.cpp

    r268666 r268919  
    283283    // Our parent might have set an override content logical width on us, so we must respect it. This
    284284    // is how flexbox containers flex or stretch us.
    285     if (hasOverrideLogicalWidth())
    286         setLogicalWidth(std::max(logicalWidth(), overrideLogicalWidth()));
     285    if (hasOverridingLogicalWidth())
     286        setLogicalWidth(std::max(logicalWidth(), overridingLogicalWidth()));
    287287
    288288    // Ensure we aren't bigger than our max-width style.
  • trunk/Source/WebCore/rendering/RenderTableCell.cpp

    r268666 r268919  
    331331}
    332332
    333 void RenderTableCell::setOverrideLogicalHeightFromRowHeight(LayoutUnit rowHeight)
     333void RenderTableCell::setOverridingLogicalHeightFromRowHeight(LayoutUnit rowHeight)
    334334{
    335335    clearIntrinsicPadding();
    336     setOverrideLogicalHeight(rowHeight);
     336    setOverridingLogicalHeight(rowHeight);
    337337}
    338338
  • trunk/Source/WebCore/rendering/RenderTableCell.h

    r268666 r268919  
    103103    LayoutUnit paddingAfter() const override;
    104104
    105     void setOverrideLogicalHeightFromRowHeight(LayoutUnit);
     105    void setOverridingLogicalHeightFromRowHeight(LayoutUnit);
    106106
    107107    void scrollbarsChanged(bool horizontalScrollbarChanged, bool verticalScrollbarChanged) override;
  • trunk/Source/WebCore/rendering/RenderTableSection.cpp

    r268666 r268919  
    284284                unsigned cellStartRow = cell->rowIndex();
    285285
    286                 if (cell->hasOverrideLogicalHeight()) {
     286                if (cell->hasOverridingLogicalHeight()) {
    287287                    cell->clearIntrinsicPadding();
    288                     cell->clearOverrideContentSize();
     288                    cell->clearOverridingContentSize();
    289289                    cell->setChildNeedsLayout(MarkOnlyThis);
    290290                    cell->layoutIfNeeded();
     
    523523    // height, which becomes irrelevant once the cell has
    524524    // been resized based off its percentage.
    525     cell.setOverrideLogicalHeightFromRowHeight(rowHeight);
     525    cell.setOverridingLogicalHeightFromRowHeight(rowHeight);
    526526    cell.layoutIfNeeded();
    527527   
Note: See TracChangeset for help on using the changeset viewer.