updateStyles

fun updateStyles(element: Element, forced: Boolean = false): Int(source)

Computes the styles of element and of the descendants whose styles can have changed: of elements whose classes, states, id or inline style changed, of their descendants, and of the children of elements whose styles changed. Elements whose computed styles changed are drawn again.

Return

how the styles changed: 0 not, 1 only properties that paint, 2 properties that lay out

Parameters

forced

true to compute the styles of all elements