Moved edge treatment code to View from DomElementProxy since it is a visual thing.