nsHTMLReflowState state; ... int width = state.ComputedWidth().value;
if (state.ComputedWidth().isAuto) { ... }In this example, we check if the `ComputedWidth` member of the `nsHTMLReflowState` object is set to "auto". This would indicate that the element's width is being determined based on its content, and not restricted by any explicit width constraints. These examples are using the C++ programming language and the Gecko layout engine library.