String CSSPageRule::cssText() const { String result = selectorText(); result += " { "; result += m_style->asText(); result += "}"; return result; }
String CSSPageRule::cssText() const { String result = selectorText(); result += " { "; result += m_pageRule->properties()->asText(); result += "}"; return result; }
String CSSStyleRule::cssText() const { StringBuilder result; result.append(selectorText()); result.append(" { "); String decls = m_styleRule->properties().asText(); result.append(decls); if (!decls.isEmpty()) result.append(' '); result.append('}'); return result.toString(); }
void CSSSelector::show(int indent) const { printf("%*sselectorText(): %s\n", indent, "", selectorText().ascii().data()); printf("%*sm_match: %d\n", indent, "", m_match); if (m_match != Tag) printf("%*svalue(): %s\n", indent, "", value().ascii().data()); printf("%*spseudoType(): %d\n", indent, "", pseudoType()); if (m_match == Tag) printf("%*stagQName().localName: %s\n", indent, "", tagQName().localName().ascii().data()); printf("%*sisAttributeSelector(): %d\n", indent, "", isAttributeSelector()); if (isAttributeSelector()) printf("%*sattribute(): %s\n", indent, "", attribute().localName().ascii().data()); printf("%*sargument(): %s\n", indent, "", argument().ascii().data()); }
String CSSPageRule::cssText() const { StringBuilder result; result.append("@page "); String pageSelectors = selectorText(); result.append(pageSelectors); if (!pageSelectors.isEmpty()) result.append(" "); result.append("{ "); String decls = m_pageRule->properties().asText(); result.append(decls); if (!decls.isEmpty()) result.append(' '); result.append('}'); return result.toString(); }
void CSSSelector::show() const { printf("\n******* CSSSelector::show(\"%s\") *******\n", selectorText().ascii().data()); show(2); printf("******* end *******\n"); }