Home | History | Annotate | Download | only in rendering

Lines Matching full:style

80         if ((oldRSpan != m_rowSpan || oldCSpan != m_columnSpan) && style() && parent()) {
90 Length w = style()->width();
95 w = tableCol->style()->width();
114 if (node() && style()->autoWrap()) {
191 bool rtl = table()->style()->direction() == RTL;
192 int outlineSize = style()->outlineSize();
261 if (parent() && section() && style() && style()->height() != newStyle->height())
277 // (1) Borders with the 'border-style' of 'hidden' take precedence over all other conflicting
279 // (2) Borders with a style of 'none' have the lowest priority. Only if the border properties of all
281 // the default value for the border style.)
285 // (4) If border styles differ only in color, then a style set on a cell wins over one on a row,
297 if (border1.style() == BHIDDEN || border2.style() == BHIDDEN)
300 // Rule #2 above. A style of 'none' has lowest priority and always loses to any other border.
301 if (border2.style() == BNONE)
303 if (border1.style() == BNONE)
310 // The borders have equal width. Sort by border style.
311 if (border1.style() != border2.style())
312 return border1.style() > border2.style() ? border1 : border2;
314 // The border have the same width and style. Rely on precedence (cell over row over row group, etc.)
331 CollapsedBorderValue result(&style()->borderLeft(), BCELL);
336 result = rtl ? compareBorders(result, CollapsedBorderValue(&prevCell->style()->borderRight(), BCELL)) : compareBorders(CollapsedBorderValue(&prevCell->style()->borderRight(), BCELL), result);
341 result = compareBorders(result, CollapsedBorderValue(&parent()->style()->borderLeft(), BROW));
346 result = compareBorders(result, CollapsedBorderValue(&section()->style()->borderLeft(), BROWGROUP));
356 result = compareBorders(result, CollapsedBorderValue(&colElt->style()->borderLeft(), BCOL));
360 result = compareBorders(result, CollapsedBorderValue(&colElt->parent()->style()->borderLeft(), BCOLGROUP));
370 result = rtl ? compareBorders(result, CollapsedBorderValue(&colElt->style()->borderRight(), BCOL)) : compareBorders(CollapsedBorderValue(&colElt->style()->borderRight(), BCOL), result);
376 result = compareBorders(result, CollapsedBorderValue(&tableElt->style()->borderLeft(), BTABLE));
397 CollapsedBorderValue result = CollapsedBorderValue(&style()->borderRight(), BCELL);
402 if (nextCell && nextCell->style()) {
403 result = rtl ? compareBorders(CollapsedBorderValue(&nextCell->style()->borderLeft(), BCELL), result) : compareBorders(result, CollapsedBorderValue(&nextCell->style()->borderLeft(), BCELL));
409 result = compareBorders(result, CollapsedBorderValue(&parent()->style()->borderRight(), BROW));
414 result = compareBorders(result, CollapsedBorderValue(&section()->style()->borderRight(), BROWGROUP));
424 result = compareBorders(result, CollapsedBorderValue(&colElt->style()->borderRight(), BCOL));
428 result = compareBorders(result, CollapsedBorderValue(&colElt->parent()->style()->borderRight(), BCOLGROUP));
438 result = rtl ? compareBorders(CollapsedBorderValue(&colElt->style()->borderLeft(), BCOL), result) : compareBorders(result, CollapsedBorderValue(&colElt->style()->borderLeft(), BCOL));
444 result = compareBorders(result, CollapsedBorderValue(&tableElt->style()->borderRight(), BTABLE));
456 CollapsedBorderValue result = CollapsedBorderValue(&style()->borderTop(), BCELL);
461 result = compareBorders(CollapsedBorderValue(&prevCell->style()->borderBottom(), BCELL), result);
467 result = compareBorders(result, CollapsedBorderValue(&parent()->style()->borderTop(), BROW));
480 result = compareBorders(CollapsedBorderValue(&prevRow->style()->borderBottom(), BROW), result);
490 result = compareBorders(result, CollapsedBorderValue(&currSection->style()->borderTop(), BROWGROUP));
497 result = compareBorders(CollapsedBorderValue(&currSection->style()->borderBottom(), BROWGROUP), result);
507 result = compareBorders(result, CollapsedBorderValue(&colElt->style()->borderTop(), BCOL));
511 result = compareBorders(result, CollapsedBorderValue(&colElt->parent()->style()->borderTop(), BCOLGROUP));
518 result = compareBorders(result, CollapsedBorderValue(&table()->style()->borderTop(), BTABLE));
530 CollapsedBorderValue result = CollapsedBorderValue(&style()->borderBottom(), BCELL);
535 result = compareBorders(result, CollapsedBorderValue(&nextCell->style()->borderTop(), BCELL));
541 result = compareBorders(result, CollapsedBorderValue(&parent()->style()->borderBottom(), BROW));
547 result = compareBorders(result, CollapsedBorderValue(&nextCell->parent()->style()->borderTop(), BROW));
556 result = compareBorders(result, CollapsedBorderValue(&currSection->style()->borderBottom(), BROWGROUP));
563 result = compareBorders(result, CollapsedBorderValue(&currSection->style()->borderTop(), BROWGROUP));
573 result = compareBorders(result, CollapsedBorderValue(&colElt->style()->borderBottom(), BCOL));
576 result = compareBorders(result, CollapsedBorderValue(&colElt->parent()->style()->borderBottom(), BCOLGROUP));
583 result = compareBorders(result, CollapsedBorderValue(&table()->style()->borderBottom(), BTABLE));
613 CollapsedBorderValue border = collapsedLeftBorder(table()->style()->direction() == RTL);
621 CollapsedBorderValue border = collapsedRightBorder(table()->style()->direction() == RTL);
645 if (paintInfo.phase == PaintPhaseCollapsedTableBorders && style()->visibility() == VISIBLE) {
661 static EBorderStyle collapsedBorderStyle(EBorderStyle style)
663 if (style == OUTSET)
665 if (style == INSET)
667 return style;
678 EBorderStyle style;
699 m_borders[m_count].style = borderStyle;
733 bool rtl = table()->style()->direction() == RTL;
776 bool rtl = table()->style()->direction() == RTL;
793 EBorderStyle topStyle = collapsedBorderStyle(topVal.style());
794 EBorderStyle bottomStyle = collapsedBorderStyle(bottomVal.style());
795 EBorderStyle leftStyle = collapsedBorderStyle(leftVal.style());
796 EBorderStyle rightStyle = collapsedBorderStyle(rightVal.style());
814 border->borderValue.color(), style()->color(), border->style, 0, 0);
826 if (style()->visibility() != VISIBLE)
830 if (!tableElt->collapseBorders() && style()->emptyCells() == HIDE && !firstChild())
841 Color c = backgroundObject->style()->backgroundColor();
842 const FillLayer* bgLayer = backgroundObject->style()->backgroundLayers();
866 if (!tableElt->collapseBorders() && style()->emptyCells() == HIDE && !firstChild())
872 if (style()->boxShadow())
873 paintBoxShadow(paintInfo.context, tx, ty, w, h, style(), Normal);
877 if (style()->boxShadow())
878 paintBoxShadow(paintInfo.context, tx, ty, w, h, style(), Inset);
880 if (!style()->hasBorder() || tableElt->collapseBorders())
883 paintBorder(paintInfo.context, tx, ty, w, h, style());
888 if (style()->visibility() != VISIBLE || paintInfo.phase != PaintPhaseMask)
892 if (!tableElt->collapseBorders() && style()->emptyCells() == HIDE && !firstChild())