nsHTMLReflowState* state = ...; // get the layout state int computedHeight = state->ComputedHeight();In this example, we obtain the layout state for a block-level element from some unknown source and retrieve its computed height using the ComputedHeight property. Package library: Mozilla Gecko C++ library for rendering webpages.