Replaced call to deprecated mark_context_dirty.