-
simon.fraser@apple.com authored
Reviewed by Adam Roben. [CSS Gradients] Crash due to out-of-memory with repeating-linear-gradient and latter stop positioned before former https://bugs.webkit.org/show_bug.cgi?id=52732 When repeating gradient stops, make sure that the first and last stops are not at the same place, otherwise we'll add stops indefinitely and run out of memory. Test: fast/gradients/zero-range-repeating-gradient-hang.html * css/CSSGradientValue.cpp: (WebCore::CSSGradientValue::addStops): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3fa24818