X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Frendering%2FFixedTableLayout.cpp;h=1093b41b07da092100cf466f70099d337085a95c;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=25e4b83ffd3f5746cc2a6f0b066df58cfbec8e4a;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/rendering/FixedTableLayout.cpp b/src/third_party/WebKit/Source/core/rendering/FixedTableLayout.cpp index 25e4b83..1093b41 100644 --- a/src/third_party/WebKit/Source/core/rendering/FixedTableLayout.cpp +++ b/src/third_party/WebKit/Source/core/rendering/FixedTableLayout.cpp @@ -69,9 +69,7 @@ overflow content. */ -using namespace std; - -namespace WebCore { +namespace blink { FixedTableLayout::FixedTableLayout(RenderTable* table) : TableLayout(table) @@ -140,6 +138,11 @@ int FixedTableLayout::calcWidthArray() RenderTableRow* firstRow = section->firstRow(); for (RenderTableCell* cell = firstRow->firstCell(); cell; cell = cell->nextCell()) { Length logicalWidth = cell->styleOrColLogicalWidth(); + + // FIXME: calc() on tables should be handled consistently with other lengths. See bug: https://crbug.com/382725 + if (logicalWidth.isCalculated()) + logicalWidth = Length(); // Make it Auto + unsigned span = cell->colSpan(); int fixedBorderBoxLogicalWidth = 0; // FIXME: Support other length types. If the width is non-auto, it should probably just use @@ -331,4 +334,4 @@ void FixedTableLayout::willChangeTableLayout() } } -} // namespace WebCore +} // namespace blink