Changeset 197509 in webkit


Ignore:
Timestamp:
Mar 3, 2016 9:40:57 AM (8 years ago)
Author:
ap@apple.com
Message:

AllInOne build fix.

  • rendering/RenderFlexibleBox.cpp:
  • rendering/RenderGrid.cpp:

Don't have two static functions with the same name.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r197507 r197509  
     12016-03-03  Alexey Proskuryakov  <ap@apple.com>
     2
     3        AllInOne build fix.
     4
     5        * rendering/RenderFlexibleBox.cpp:
     6        * rendering/RenderGrid.cpp:
     7        Don't have two static functions with the same name.
     8
    192016-03-03  Chris Dumez  <cdumez@apple.com>
    210
  • trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp

    r197503 r197509  
    10931093}
    10941094
    1095 static const StyleContentAlignmentData& normalValueBehavior()
     1095static const StyleContentAlignmentData& normalValueBehaviorFlexibleBox()
    10961096{
    10971097    // The justify-content property applies along the main axis, but since flexing
     
    11071107    ASSERT(childSizes.size() == children.size());
    11081108
    1109     ContentPosition position = style().resolvedJustifyContentPosition(normalValueBehavior());
    1110     ContentDistributionType distribution = style().resolvedJustifyContentDistribution(normalValueBehavior());
     1109    ContentPosition position = style().resolvedJustifyContentPosition(normalValueBehaviorFlexibleBox());
     1110    ContentDistributionType distribution = style().resolvedJustifyContentDistribution(normalValueBehaviorFlexibleBox());
    11111111
    11121112    size_t numberOfChildrenForJustifyContent = numberOfInFlowPositionedChildren(children);
     
    11911191void RenderFlexibleBox::layoutColumnReverse(const OrderedFlexItemList& children, LayoutUnit crossAxisOffset, LayoutUnit availableFreeSpace)
    11921192{
    1193     ContentPosition position = style().resolvedJustifyContentPosition(normalValueBehavior());
    1194     ContentDistributionType distribution = style().resolvedJustifyContentDistribution(normalValueBehavior());
     1193    ContentPosition position = style().resolvedJustifyContentPosition(normalValueBehaviorFlexibleBox());
     1194    ContentDistributionType distribution = style().resolvedJustifyContentDistribution(normalValueBehaviorFlexibleBox());
    11951195
    11961196    // This is similar to the logic in layoutAndPlaceChildren, except we place the children
     
    12491249void RenderFlexibleBox::alignFlexLines(Vector<LineContext>& lineContexts)
    12501250{
    1251     ContentPosition position = style().resolvedAlignContentPosition(normalValueBehavior());
    1252     ContentDistributionType distribution = style().resolvedAlignContentDistribution(normalValueBehavior());
     1251    ContentPosition position = style().resolvedAlignContentPosition(normalValueBehaviorFlexibleBox());
     1252    ContentDistributionType distribution = style().resolvedAlignContentDistribution(normalValueBehaviorFlexibleBox());
    12531253
    12541254    if (!isMultiline() || position == ContentPositionFlexStart)
  • trunk/Source/WebCore/rendering/RenderGrid.cpp

    r197503 r197509  
    13551355}
    13561356
    1357 static const StyleContentAlignmentData& normalValueBehavior()
     1357static const StyleContentAlignmentData& normalValueBehaviorGrid()
    13581358{
    13591359    static const StyleContentAlignmentData normalBehavior = {ContentPositionNormal, ContentDistributionStretch};
     
    13661366    if (!freeSpace
    13671367        || freeSpace.value() <= 0
    1368         || (direction == ForColumns && style().resolvedJustifyContentDistribution(normalValueBehavior()) != ContentDistributionStretch)
    1369         || (direction == ForRows && style().resolvedAlignContentDistribution(normalValueBehavior()) != ContentDistributionStretch))
     1368        || (direction == ForColumns && style().resolvedJustifyContentDistribution(normalValueBehaviorGrid()) != ContentDistributionStretch)
     1369        || (direction == ForRows && style().resolvedAlignContentDistribution(normalValueBehaviorGrid()) != ContentDistributionStretch))
    13701370        return;
    13711371
     
    18631863        // In order to properly adjust the Self Alignment values we need to consider the offset between tracks.
    18641864        if (childEndLine - childStartLine > 1 && childEndLine < m_rowPositions.size() - 1)
    1865             endOfRow -= offsetBetweenTracks(style().resolvedAlignContentDistribution(normalValueBehavior()), m_rowPositions, childBreadth);
     1865            endOfRow -= offsetBetweenTracks(style().resolvedAlignContentDistribution(normalValueBehaviorGrid()), m_rowPositions, childBreadth);
    18661866        LayoutUnit offsetFromStartPosition = computeOverflowAlignmentOffset(RenderStyle::resolveAlignmentOverflow(style(), child.style()), endOfRow - startOfRow, childBreadth);
    18671867        return startPosition + (axisPosition == GridAxisEnd ? offsetFromStartPosition : offsetFromStartPosition / 2);
     
    18971897        // In order to properly adjust the Self Alignment values we need to consider the offset between tracks.
    18981898        if (childEndLine - childStartLine > 1 && childEndLine < m_columnPositions.size() - 1)
    1899             endOfColumn -= offsetBetweenTracks(style().resolvedJustifyContentDistribution(normalValueBehavior()), m_columnPositions, childBreadth);
     1899            endOfColumn -= offsetBetweenTracks(style().resolvedJustifyContentDistribution(normalValueBehaviorGrid()), m_columnPositions, childBreadth);
    19001900        LayoutUnit offsetFromStartPosition = computeOverflowAlignmentOffset(RenderStyle::resolveJustificationOverflow(style(), child.style()), endOfColumn - startOfColumn, childBreadth);
    19011901        return startPosition + (axisPosition == GridAxisEnd ? offsetFromStartPosition : offsetFromStartPosition / 2);
     
    19601960{
    19611961    bool isRowAxis = direction == ForColumns;
    1962     ContentPosition position = isRowAxis ? style().resolvedJustifyContentPosition(normalValueBehavior()) : style().resolvedAlignContentPosition(normalValueBehavior());
    1963     ContentDistributionType distribution = isRowAxis ? style().resolvedJustifyContentDistribution(normalValueBehavior()) : style().resolvedAlignContentDistribution(normalValueBehavior());
     1962    ContentPosition position = isRowAxis ? style().resolvedJustifyContentPosition(normalValueBehaviorGrid()) : style().resolvedAlignContentPosition(normalValueBehaviorGrid());
     1963    ContentDistributionType distribution = isRowAxis ? style().resolvedJustifyContentDistribution(normalValueBehaviorGrid()) : style().resolvedAlignContentDistribution(normalValueBehaviorGrid());
    19641964    // If <content-distribution> value can't be applied, 'position' will become the associated
    19651965    // <content-position> fallback value.
Note: See TracChangeset for help on using the changeset viewer.