Index: third_party/WebKit/WebCore/rendering/RenderSVGGradientStop.h |
=================================================================== |
--- third_party/WebKit/WebCore/rendering/RenderSVGGradientStop.h (revision 9383) |
+++ third_party/WebKit/WebCore/rendering/RenderSVGGradientStop.h (working copy) |
@@ -41,10 +41,11 @@ |
virtual void layout(); |
- // This override is needed to prevent an assert on <svg><stop /></svg> |
- // RenderObject's default impl asserts. |
+ // This override is needed to prevent crashing on <svg><stop /></svg> |
+ // RenderObject's default impl asks the parent Object and RenderSVGRoot |
+ // asks all child RenderObjects for overflow rects, thus infinite loop. |
// https://bugs.webkit.org/show_bug.cgi?id=20400 |
- virtual IntRect clippedOverflowRectForRepaint(RenderBoxModelObject*) { return IntRect(); } |
+ virtual IntRect clippedOverflowRectForRepaint(RenderBox*) { return IntRect(); } |
protected: |
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); |