summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/RenderSVGGradientStop.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/rendering/RenderSVGGradientStop.h
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/rendering/RenderSVGGradientStop.h')
-rw-r--r--WebCore/rendering/RenderSVGGradientStop.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/WebCore/rendering/RenderSVGGradientStop.h b/WebCore/rendering/RenderSVGGradientStop.h
index b6d4663..86de6d0 100644
--- a/WebCore/rendering/RenderSVGGradientStop.h
+++ b/WebCore/rendering/RenderSVGGradientStop.h
@@ -36,12 +36,20 @@ namespace WebCore {
public:
RenderSVGGradientStop(SVGStopElement*);
virtual ~RenderSVGGradientStop();
-
+
virtual const char* renderName() const { return "RenderSVGGradientStop"; }
-
+
virtual void layout();
- virtual void setStyle(RenderStyle*);
-
+
+ // 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 absoluteClippedOverflowRect() { return IntRect(); }
+
+ protected:
+ virtual void styleDidChange(RenderStyle::Diff, const RenderStyle* oldStyle);
+
private:
SVGGradientElement* gradientElement() const;
};