static unsigned prerenderRelTypesFromRelAttribute(const LinkRelAttribute& relAttribute) { unsigned result = 0; if (relAttribute.isLinkPrerender()) result |= PrerenderRelTypePrerender; if (relAttribute.isLinkNext()) result |= PrerenderRelTypeNext; return result; }
static unsigned prerenderRelTypesFromRelAttribute(const LinkRelAttribute& relAttribute, Document& document) { unsigned result = 0; if (relAttribute.isLinkPrerender()) { result |= PrerenderRelTypePrerender; UseCounter::count(document, UseCounter::LinkRelPrerender); } if (relAttribute.isLinkNext()) { result |= PrerenderRelTypeNext; UseCounter::count(document, UseCounter::LinkRelNext); } return result; }