Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1321)

Unified Diff: Source/core/rendering/FixedTableLayout.cpp

Issue 27690002: Not able to set width using ColGroup when table-layout is fixed. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/FixedTableLayout.cpp
diff --git a/Source/core/rendering/FixedTableLayout.cpp b/Source/core/rendering/FixedTableLayout.cpp
index 69cd24819aa51ae7aa28124254b48b730021ef75..5c1e47c668c70a05d64cf66d2d58a9d872102307 100644
--- a/Source/core/rendering/FixedTableLayout.cpp
+++ b/Source/core/rendering/FixedTableLayout.cpp
@@ -159,7 +159,12 @@ int FixedTableLayout::calcWidthArray()
float eSpan = m_table->spanOfEffCol(currentColumn);
// Only set if no col element has already set it.
if (m_width[currentColumn].isAuto() && logicalWidth.type() != Auto) {
- m_width[currentColumn] = logicalWidth;
+ // Some column do not have col width specified by colgroup so
+ // by default those column should set as auto.
+ if (span > 1)
+ m_width[currentColumn].setValue(m_width[currentColumn].type(), logicalWidth.intValue());
Julien - ping for review 2013/10/22 21:11:41 I don't understand how this line is correct: m_wid
suchit.agrawal 2013/10/23 13:41:06 If column is auto then we need to keep it auto. By
Julien - ping for review 2013/10/23 17:04:52 Again, you're explaining 'what' which can be infer
+ else
+ m_width[currentColumn] = logicalWidth;
m_width[currentColumn] *= eSpan / span;
usedWidth += fixedBorderBoxLogicalWidth * eSpan / span;
}

Powered by Google App Engine
This is Rietveld 408576698