Title: [105193] branches/chromium/963/Source/WebCore/rendering/RenderFlexibleBox.cpp
- Revision
- 105193
- Author
- [email protected]
- Date
- 2012-01-17 14:09:29 -0800 (Tue, 17 Jan 2012)
Log Message
Fix compilation after r105165.
The merge was bad because there have been refactoring changes that weren't
included on the branch.
Review URL: https://chromiumcodereview.appspot.com/9243024
Modified Paths
Diff
Modified: branches/chromium/963/Source/WebCore/rendering/RenderFlexibleBox.cpp (105192 => 105193)
--- branches/chromium/963/Source/WebCore/rendering/RenderFlexibleBox.cpp 2012-01-17 21:44:54 UTC (rev 105192)
+++ branches/chromium/963/Source/WebCore/rendering/RenderFlexibleBox.cpp 2012-01-17 22:09:29 UTC (rev 105193)
@@ -579,7 +579,7 @@
child->containingBlock()->insertPositionedObject(child);
RenderLayer* childLayer = child->layer();
LayoutUnit inlinePosition = isColumnFlow() ? crossAxisOffset : mainAxisOffset;
- if (style()->flexDirection() == FlowRowReverse)
+ if (style()->flexFlow() == FlowRowReverse)
inlinePosition = mainAxisExtent() - mainAxisOffset;
childLayer->setStaticInlinePosition(inlinePosition); // FIXME: Not right for regions.
@@ -608,8 +608,9 @@
size_t i = 0;
for (RenderBox* child = iterator.first(); child; child = iterator.next(), ++i) {
if (child->isPositioned()) {
- prepareChildForPositionedLayout(child, mainAxisOffset, crossAxisOffset);
- mainAxisOffset += packingSpaceBetweenChildren(availableFreeSpace, totalPositiveFlexibility, style()->flexPack(), childSizes.size());
+ prepareChildForPositionedLayout(child, startEdge, logicalTop);
+ if (hasPackingSpace(availableFreeSpace, totalPositiveFlexibility) && style()->flexPack() == PackJustify && childSizes.size() > 1)
+ startEdge += availableFreeSpace / (childSizes.size() - 1);
continue;
}
LayoutUnit childPreferredSize = childSizes[i] + mainAxisBorderAndPaddingExtentForChild(child);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes