fix StyleContext::updateContextSize to work well both with static-sized or not