Changeset 127684 in webkit
- Timestamp:
- Sep 5, 2012 8:20:45 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 22 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r127682 r127684 1 2012-09-05 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r127596. 4 http://trac.webkit.org/changeset/127596 5 https://bugs.webkit.org/show_bug.cgi?id=95928 6 7 newly added tests are failing (Requested by bashi1 on 8 #webkit). 9 10 * fast/regions/autowidth-abspos-expected.html: Removed. 11 * fast/regions/autowidth-abspos-regionchain-expected.html: Removed. 12 * fast/regions/autowidth-abspos-regionchain.html: Removed. 13 * fast/regions/autowidth-abspos.html: Removed. 14 * fast/regions/autowidth-float-expected.html: Removed. 15 * fast/regions/autowidth-float.html: Removed. 16 * fast/regions/autowidth-inlineblock-expected.html: Removed. 17 * fast/regions/autowidth-inlineblock.html: Removed. 18 * fast/regions/autowidth-nonreplaced-abspos-expected.html: Removed. 19 * fast/regions/autowidth-nonreplaced-abspos.html: Removed. 20 * fast/regions/autowidth-nonreplacedblock-normalflow-expected.html: Removed. 21 * fast/regions/autowidth-nonreplacedblock-normalflow.html: Removed. 22 * fast/regions/autowidth-normalflow-expected.html: Removed. 23 * fast/regions/autowidth-normalflow-maxwidth-expected.html: Removed. 24 * fast/regions/autowidth-normalflow-maxwidth.html: Removed. 25 * fast/regions/autowidth-normalflow-minmaxwidth-expected.html: Removed. 26 * fast/regions/autowidth-normalflow-minmaxwidth.html: Removed. 27 * fast/regions/autowidth-normalflow-minwidth-expected.html: Removed. 28 * fast/regions/autowidth-normalflow-minwidth.html: Removed. 29 * fast/regions/autowidth-normalflow-vertrl-expected.html: Removed. 30 * fast/regions/autowidth-normalflow-vertrl.html: Removed. 31 * fast/regions/autowidth-normalflow.html: Removed. 32 * fast/regions/bottom-overflow-out-of-first-region.html: 33 * fast/regions/flows-dependency-dynamic-remove.html: 34 * fast/regions/flows-dependency-same-flow.html: 35 * fast/regions/render-region-renderer-expected.html: 36 * fast/regions/top-overflow-out-of-second-region.html: 37 1 38 2012-09-05 Michelangelo De Simone <michelangelo@webkit.org> 2 39 -
trunk/LayoutTests/fast/regions/bottom-overflow-out-of-first-region.html
r127596 r127684 34 34 } 35 35 36 #region3 {37 width: 0px;38 height: 0px;39 }40 36 </style> 41 37 -
trunk/LayoutTests/fast/regions/flows-dependency-dynamic-remove.html
r127596 r127684 9 9 .regionFlowB { -webkit-flow-from: flowB; } 10 10 .regionFlowC { -webkit-flow-from: flowC; } 11 12 .regionFlowA, .regionFlowB, .regionFlowC { width: 0px; height: 0px; }13 11 </style> 14 12 -
trunk/LayoutTests/fast/regions/flows-dependency-same-flow.html
r127596 r127684 9 9 .regionFlowB { -webkit-flow-from: flowB; } 10 10 .regionFlowC { -webkit-flow-from: flowC; } 11 12 .regionFlowA, .regionFlowB, .regionFlowC { width: 0px; height: 0px; }13 11 </style> 14 12 -
trunk/LayoutTests/fast/regions/render-region-renderer-expected.html
r127596 r127684 15 15 .size1 16 16 { 17 width:0.5px; 17 18 height:0.5px; 18 19 } -
trunk/LayoutTests/fast/regions/top-overflow-out-of-second-region.html
r127596 r127684 34 34 } 35 35 36 #region3 {37 width: 0px;38 height: 0px;39 }40 36 </style> 41 37 -
trunk/Source/WebCore/ChangeLog
r127683 r127684 1 2012-09-05 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r127596. 4 http://trac.webkit.org/changeset/127596 5 https://bugs.webkit.org/show_bug.cgi?id=95928 6 7 newly added tests are failing (Requested by bashi1 on 8 #webkit). 9 10 * rendering/RenderBox.cpp: 11 (WebCore::RenderBox::computePositionedLogicalWidth): 12 * rendering/RenderRegion.cpp: 13 * rendering/RenderRegion.h: 14 (RenderRegion): 15 1 16 2012-09-05 Arnaud Renevier <a.renevier@sisa.samsung.com> 2 17 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r127681 r127684 2544 2544 { 2545 2545 if (isReplaced()) { 2546 // FIXME: For regions with width auto, we want to compute width using the normal block sizing code. 2547 // For now, regions are replaced elements and this code can be removed once the RenderRegion 2548 // will inherit from RenderBlock instead of RenderReplaced. 2549 // (see https://bugs.webkit.org/show_bug.cgi?id=74132 ) 2550 if (!isRenderRegion() || (isRenderRegion() && shouldComputeSizeAsReplaced())) { 2551 computePositionedLogicalWidthReplaced(); // FIXME: Patch for regions when we add replaced element support. 2552 return; 2553 } 2546 computePositionedLogicalWidthReplaced(); // FIXME: Patch for regions when we add replaced element support. 2547 return; 2554 2548 } 2555 2549 -
trunk/Source/WebCore/rendering/RenderRegion.cpp
r127596 r127684 497 497 } 498 498 499 // FIXME: when RenderRegion will inherit from RenderBlock instead of RenderReplaced,500 // we should overwrite computePreferredLogicalWidths ( see https://bugs.webkit.org/show_bug.cgi?id=74132 )501 LayoutUnit RenderRegion::minPreferredLogicalWidth() const502 {503 if (!m_flowThread)504 return RenderReplaced::minPreferredLogicalWidth();505 506 // FIXME: Currently, the code handles only the <length> case for min-width. It should also support other values, like percentage, calc507 // or viewport relative.508 RenderStyle* styleToUse = style();509 LayoutUnit minPreferredLogicalWidth = m_flowThread->minPreferredLogicalWidth();510 511 if (styleToUse->logicalMinWidth().isFixed() && styleToUse->logicalMinWidth().value() > 0)512 minPreferredLogicalWidth = std::max(minPreferredLogicalWidth, computeContentBoxLogicalWidth(styleToUse->logicalMinWidth().value()));513 514 if (styleToUse->logicalMaxWidth().isFixed())515 minPreferredLogicalWidth = std::min(minPreferredLogicalWidth, computeContentBoxLogicalWidth(styleToUse->logicalMaxWidth().value()));516 517 return minPreferredLogicalWidth + borderAndPaddingLogicalWidth();518 }519 520 LayoutUnit RenderRegion::maxPreferredLogicalWidth() const521 {522 if (!m_flowThread)523 return RenderReplaced::maxPreferredLogicalWidth();524 525 // FIXME: Currently, the code handles only the <length> case for max-width. It should also support other values, like percentage, calc526 // or viewport relative.527 RenderStyle* styleToUse = style();528 LayoutUnit maxPreferredLogicalWidth = m_flowThread->maxPreferredLogicalWidth();529 530 if (styleToUse->logicalMinWidth().isFixed() && styleToUse->logicalMinWidth().value() > 0)531 maxPreferredLogicalWidth = std::max(maxPreferredLogicalWidth, computeContentBoxLogicalWidth(styleToUse->logicalMinWidth().value()));532 533 if (styleToUse->logicalMaxWidth().isFixed())534 maxPreferredLogicalWidth = std::min(maxPreferredLogicalWidth, computeContentBoxLogicalWidth(styleToUse->logicalMaxWidth().value()));535 536 return maxPreferredLogicalWidth + borderAndPaddingLogicalWidth();537 }538 539 499 } // namespace WebCore -
trunk/Source/WebCore/rendering/RenderRegion.h
r127596 r127684 101 101 virtual LayoutUnit pageLogicalWidth() const; 102 102 virtual LayoutUnit pageLogicalHeight() const; 103 104 virtual LayoutUnit minPreferredLogicalWidth() const OVERRIDE;105 virtual LayoutUnit maxPreferredLogicalWidth() const OVERRIDE;106 103 107 104 // This method represents the logical height of the entire flow thread portion used by the region or set. … … 132 129 private: 133 130 virtual const char* renderName() const { return "RenderRegion"; } 134 135 // FIXME: these functions should be revisited once RenderRegion inherits from RenderBlock136 // instead of RenderReplaced (see https://bugs.webkit.org/show_bug.cgi?id=74132 )137 // When width is auto, use normal block/box sizing code except when inline.138 virtual bool isInlineBlockOrInlineTable() const OVERRIDE { return isInline() && style()->logicalWidth().isAuto(); }139 virtual bool shouldComputeSizeAsReplaced() const OVERRIDE { return !style()->logicalWidth().isAuto(); }140 131 141 132 virtual void insertedIntoTree() OVERRIDE;
Note: See TracChangeset
for help on using the changeset viewer.