Changeset 197509 in webkit
- Timestamp:
- Mar 3, 2016 9:40:57 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r197507 r197509 1 2016-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 1 9 2016-03-03 Chris Dumez <cdumez@apple.com> 2 10 -
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r197503 r197509 1093 1093 } 1094 1094 1095 static const StyleContentAlignmentData& normalValueBehavior ()1095 static const StyleContentAlignmentData& normalValueBehaviorFlexibleBox() 1096 1096 { 1097 1097 // The justify-content property applies along the main axis, but since flexing … … 1107 1107 ASSERT(childSizes.size() == children.size()); 1108 1108 1109 ContentPosition position = style().resolvedJustifyContentPosition(normalValueBehavior ());1110 ContentDistributionType distribution = style().resolvedJustifyContentDistribution(normalValueBehavior ());1109 ContentPosition position = style().resolvedJustifyContentPosition(normalValueBehaviorFlexibleBox()); 1110 ContentDistributionType distribution = style().resolvedJustifyContentDistribution(normalValueBehaviorFlexibleBox()); 1111 1111 1112 1112 size_t numberOfChildrenForJustifyContent = numberOfInFlowPositionedChildren(children); … … 1191 1191 void RenderFlexibleBox::layoutColumnReverse(const OrderedFlexItemList& children, LayoutUnit crossAxisOffset, LayoutUnit availableFreeSpace) 1192 1192 { 1193 ContentPosition position = style().resolvedJustifyContentPosition(normalValueBehavior ());1194 ContentDistributionType distribution = style().resolvedJustifyContentDistribution(normalValueBehavior ());1193 ContentPosition position = style().resolvedJustifyContentPosition(normalValueBehaviorFlexibleBox()); 1194 ContentDistributionType distribution = style().resolvedJustifyContentDistribution(normalValueBehaviorFlexibleBox()); 1195 1195 1196 1196 // This is similar to the logic in layoutAndPlaceChildren, except we place the children … … 1249 1249 void RenderFlexibleBox::alignFlexLines(Vector<LineContext>& lineContexts) 1250 1250 { 1251 ContentPosition position = style().resolvedAlignContentPosition(normalValueBehavior ());1252 ContentDistributionType distribution = style().resolvedAlignContentDistribution(normalValueBehavior ());1251 ContentPosition position = style().resolvedAlignContentPosition(normalValueBehaviorFlexibleBox()); 1252 ContentDistributionType distribution = style().resolvedAlignContentDistribution(normalValueBehaviorFlexibleBox()); 1253 1253 1254 1254 if (!isMultiline() || position == ContentPositionFlexStart) -
trunk/Source/WebCore/rendering/RenderGrid.cpp
r197503 r197509 1355 1355 } 1356 1356 1357 static const StyleContentAlignmentData& normalValueBehavior ()1357 static const StyleContentAlignmentData& normalValueBehaviorGrid() 1358 1358 { 1359 1359 static const StyleContentAlignmentData normalBehavior = {ContentPositionNormal, ContentDistributionStretch}; … … 1366 1366 if (!freeSpace 1367 1367 || 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)) 1370 1370 return; 1371 1371 … … 1863 1863 // In order to properly adjust the Self Alignment values we need to consider the offset between tracks. 1864 1864 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); 1866 1866 LayoutUnit offsetFromStartPosition = computeOverflowAlignmentOffset(RenderStyle::resolveAlignmentOverflow(style(), child.style()), endOfRow - startOfRow, childBreadth); 1867 1867 return startPosition + (axisPosition == GridAxisEnd ? offsetFromStartPosition : offsetFromStartPosition / 2); … … 1897 1897 // In order to properly adjust the Self Alignment values we need to consider the offset between tracks. 1898 1898 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); 1900 1900 LayoutUnit offsetFromStartPosition = computeOverflowAlignmentOffset(RenderStyle::resolveJustificationOverflow(style(), child.style()), endOfColumn - startOfColumn, childBreadth); 1901 1901 return startPosition + (axisPosition == GridAxisEnd ? offsetFromStartPosition : offsetFromStartPosition / 2); … … 1960 1960 { 1961 1961 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()); 1964 1964 // If <content-distribution> value can't be applied, 'position' will become the associated 1965 1965 // <content-position> fallback value.
Note: See TracChangeset
for help on using the changeset viewer.