Ejemplo n.º 1
0
const StylePropertySet* HTMLTableElement::additionalGroupStyle(bool rows)
{
    if (m_rulesAttr != GroupsRules)
        return 0;

    if (rows) {
        DEFINE_STATIC_REF_WILL_BE_PERSISTENT(StylePropertySet, rowBorderStyle, (createGroupBorderStyle(true)));
        return rowBorderStyle;
    }
    DEFINE_STATIC_REF_WILL_BE_PERSISTENT(StylePropertySet, columnBorderStyle, (createGroupBorderStyle(false)));
    return columnBorderStyle;
}
Ejemplo n.º 2
0
const StylePropertySet* HTMLTableElement::additionalGroupStyle(bool rows) {
  if (m_rulesAttr != GroupsRules)
    return nullptr;

  if (rows) {
    DEFINE_STATIC_LOCAL(StylePropertySet, rowBorderStyle,
                        (createGroupBorderStyle(true)));
    return &rowBorderStyle;
  }
  DEFINE_STATIC_LOCAL(StylePropertySet, columnBorderStyle,
                      (createGroupBorderStyle(false)));
  return &columnBorderStyle;
}