From ab525fa648885957ef4a11f7a6796e2d8dac36f4 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Tue, 10 Apr 2012 18:57:48 +0100 Subject: Cherry-pick WebKit change r88474 to fix a LayoutTest crash fast/css/webkit-keyframes-crash.html See http://trac.webkit.org/changeset/88474 Bug: 6328781 Change-Id: I9ae7d323b48ff6e55c720595fd27249176e87b8f --- Source/WebCore/css/WebKitCSSKeyframesRule.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/WebCore') diff --git a/Source/WebCore/css/WebKitCSSKeyframesRule.cpp b/Source/WebCore/css/WebKitCSSKeyframesRule.cpp index 3b41f43..497bd19 100644 --- a/Source/WebCore/css/WebKitCSSKeyframesRule.cpp +++ b/Source/WebCore/css/WebKitCSSKeyframesRule.cpp @@ -66,7 +66,8 @@ void WebKitCSSKeyframesRule::setName(const String& name) // Since the name is used in the keyframe map list in CSSStyleSelector, we need // to recompute the style sheet to get the updated name. - stylesheet()->styleSheetChanged(); + if (stylesheet()) + stylesheet()->styleSheetChanged(); } unsigned WebKitCSSKeyframesRule::length() const -- cgit v1.1