summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-04-13 07:42:44 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-13 07:42:44 -0700
commit66e7b4a51dbcf67187cacb04f4a5eeb1567972c6 (patch)
tree972dd2e153a80bc9e71b62c1ef9c088cb3537458 /Source
parent72e6719059c962ab33d1e9f89e13f9c79657ba11 (diff)
parent65f5521b69d0cfd5e011e73412b6c69ffcf0a897 (diff)
downloadexternal_webkit-66e7b4a51dbcf67187cacb04f4a5eeb1567972c6.zip
external_webkit-66e7b4a51dbcf67187cacb04f4a5eeb1567972c6.tar.gz
external_webkit-66e7b4a51dbcf67187cacb04f4a5eeb1567972c6.tar.bz2
Merge "Cherry-pick WebKit change r94215 to fix a LayoutTest crash"
Diffstat (limited to 'Source')
-rw-r--r--Source/WebCore/css/CSSParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/css/CSSParser.cpp b/Source/WebCore/css/CSSParser.cpp
index b78a6d0..06e895d 100644
--- a/Source/WebCore/css/CSSParser.cpp
+++ b/Source/WebCore/css/CSSParser.cpp
@@ -5383,6 +5383,8 @@ bool CSSParser::parseRadialGradient(RefPtr<CSSValue>& gradient, CSSGradientRepea
// parseFillPosition advances the args next pointer.
parseFillPosition(args, centerX, centerY);
a = args->current();
+ if (!a)
+ return false;
if (centerX || centerY) {
// Comma