void HTMLOListElement::updateItemValues() { if (!layoutObject()) return; updateDistribution(); LayoutListItem::updateItemValuesForOrderedList(this); }
void getDegreeDistribution(Locus * locus, IDnum * distribution) { IDnum index; for (index = 0; index < 4; index++) distribution[index] = 0; for (index = 0; index < getContigCount(locus); index++) updateDistribution(distribution, getContig(locus, index)); }
void HTMLElement::dirAttributeChanged(const AtomicString& value) { // If an ancestor has dir=auto, and this node has the first character, // changes to dir attribute may affect the ancestor. updateDistribution(); Element* parent = ComposedTreeTraversal::parentElement(*this); if (parent && parent->isHTMLElement() && toHTMLElement(parent)->selfOrAncestorHasDirAutoAttribute()) toHTMLElement(parent)->adjustDirectionalityIfNeededAfterChildAttributeChanged(this); if (equalIgnoringCase(value, "auto")) calculateAndAdjustDirectionality(); }
void HTMLElement::adjustDirectionalityIfNeededAfterChildrenChanged(const ChildrenChange& change) { if (!selfOrAncestorHasDirAutoAttribute()) return; updateDistribution(); for (Element* elementToAdjust = this; elementToAdjust; elementToAdjust = ComposedTreeTraversal::parentElement(*elementToAdjust)) { if (elementAffectsDirectionality(elementToAdjust)) { toHTMLElement(elementToAdjust)->calculateAndAdjustDirectionality(); return; } } }