Home | History | Annotate | Download | only in rendering

Lines Matching refs:logicalWidth

98                         if (cellLogicalWidth.isPositive() && !columnLayout.logicalWidth.isPercent()) {
99 int logicalWidth = cell->adjustBorderBoxLogicalWidthForBoxSizing(cellLogicalWidth.value());
100 if (columnLayout.logicalWidth.isFixed()) {
102 if ((logicalWidth > columnLayout.logicalWidth.value())
103 || ((columnLayout.logicalWidth.value() == logicalWidth) && (maxContributor == cell))) {
104 columnLayout.logicalWidth.setValue(Fixed, logicalWidth);
108 columnLayout.logicalWidth.setValue(Fixed, logicalWidth);
115 if (cellLogicalWidth.isPositive() && (!columnLayout.logicalWidth.isPercent() || cellLogicalWidth.value() > columnLayout.logicalWidth.value()))
116 columnLayout.logicalWidth = cellLogicalWidth;
130 if (columnLayout.logicalWidth.isFixed()) {
131 if (m_table->document().inQuirksMode() && columnLayout.maxLogicalWidth > columnLayout.logicalWidth.value() && fixedContributor != maxContributor) {
132 columnLayout.logicalWidth = Length();
154 groupLogicalWidth = column->style()->logicalWidth();
156 Length colLogicalWidth = column->style()->logicalWidth();
164 m_layoutStruct[effCol].logicalWidth = colLogicalWidth;
234 float logicalWidth = static_cast<float>(m_layoutStruct[i].effectiveMaxLogicalWidth) * 100 / std::max(percent, epsilon);
235 maxPercent = std::max(logicalWidth, maxPercent);
253 Length tableLogicalWidth = m_table->style()->logicalWidth();
284 m_layoutStruct[i].effectiveLogicalWidth = m_layoutStruct[i].logicalWidth;
315 switch (columnLayout.logicalWidth.type()) {
317 totalPercent += columnLayout.logicalWidth.percent();
321 if (columnLayout.logicalWidth.value() > 0) {
322 fixedWidth += columnLayout.logicalWidth.value();
391 int cellLogicalWidth = std::max(m_layoutStruct[pos].effectiveMinLogicalWidth, static_cast<int>(cellMinLogicalWidth * m_layoutStruct[pos].logicalWidth.value() / fixedWidth));
392 fixedWidth -= m_layoutStruct[pos].logicalWidth.value();
401 ASSERT(m_layoutStruct[pos].logicalWidth.isPercent() || m_layoutStruct[pos].effectiveLogicalWidth.isPercent());
402 // |allColsArePercent| means that either the logicalWidth *or* the effectiveLogicalWidth are percents, handle both of them here.
403 float percent = m_layoutStruct[pos].logicalWidth.isPercent() ? m_layoutStruct[pos].logicalWidth.percent() : m_layoutStruct[pos].effectiveLogicalWidth.percent();
421 if (m_layoutStruct[pos].logicalWidth.isFixed() && haveAuto && fixedWidth <= cellMinLogicalWidth) {
422 int colMinLogicalWidth = std::max<int>(m_layoutStruct[pos].effectiveMinLogicalWidth, m_layoutStruct[pos].logicalWidth.value());
423 fixedWidth -= m_layoutStruct[pos].logicalWidth.value();
432 if (!(m_layoutStruct[pos].logicalWidth.isFixed() && haveAuto && fixedWidth <= cellMinLogicalWidth)) {
497 int tableLogicalWidth = m_table->logicalWidth() - m_table->bordersPaddingAndSpacingInRowDirection();
526 Length& logicalWidth = m_layoutStruct[i].effectiveLogicalWidth;
527 switch (logicalWidth.type()) {
530 totalPercent += logicalWidth.percent();
554 Length& logicalWidth = m_layoutStruct[i].effectiveLogicalWidth;
555 if (logicalWidth.isPercent()) {
556 int cellLogicalWidth = std::max<int>(m_layoutStruct[i].effectiveMinLogicalWidth, minimumValueForLength(logicalWidth, tableLogicalWidth));
582 Length& logicalWidth = m_layoutStruct[i].effectiveLogicalWidth;
583 if (logicalWidth.isFixed() && logicalWidth.value() > m_layoutStruct[i].computedLogicalWidth) {
584 available += m_layoutStruct[i].computedLogicalWidth - logicalWidth.value();
585 m_layoutStruct[i].computedLogicalWidth = logicalWidth.value();
594 Length& logicalWidth = m_layoutStruct[i].effectiveLogicalWidth;
595 if (logicalWidth.isAuto() && totalAuto && !m_layoutStruct[i].emptyCellsOnly) {
607 Length& logicalWidth = m_layoutStruct[i].effectiveLogicalWidth;
608 if (logicalWidth.isFixed()) {
620 Length& logicalWidth = m_layoutStruct[i].effectiveLogicalWidth;
621 if (logicalWidth.isPercent()) {
622 int cellLogicalWidth = available * logicalWidth.percent() / totalPercent;
624 totalPercent -= logicalWidth.percent();
660 Length& logicalWidth = m_layoutStruct[i].effectiveLogicalWidth;
661 if (logicalWidth.isAuto())
667 Length& logicalWidth
668 if (logicalWidth.isAuto()) {
684 Length& logicalWidth = m_layoutStruct[i].effectiveLogicalWidth;
685 if (logicalWidth.isFixed())
691 Length& logicalWidth = m_layoutStruct[i].effectiveLogicalWidth;
692 if (logicalWidth.isFixed()) {
708 Length& logicalWidth = m_layoutStruct[i].effectiveLogicalWidth;
709 if (logicalWidth.isPercent())
715 Length& logicalWidth = m_layoutStruct[i].effectiveLogicalWidth;
716 if (logicalWidth.isPercent()) {