-
hmuller@adobe.com authored
https://bugs.webkit.org/show_bug.cgi?id=120349 Reviewed by Alexandru Chiculita. Revised the ShapeIntervals unite, intersect, and subtract operations to improve efficiency and clarity. No new tests are required, this is just an internal refactoring. * rendering/shapes/PolygonShape.cpp: (WebCore::computeOverlappingEdgeXProjections): Removed call to ShapeInterval<T>sortVector(), since calling std::sort directly is simpler. * rendering/shapes/ShapeInterval.h: (WebCore::ShapeInterval::contains): True if the interval parameter is within this interval. (WebCore::ShapeInterval::intersect): Substantially revised version of the original method. (WebCore::ShapeInterval::uniteVectors): Ditto. (WebCore::ShapeInterval::intersectVectors): Ditto. (WebCore::ShapeInterval::subtractVectors): Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155043 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0c385504