Fixed wrong usage of LayoutObject.