From 6304f10a68db662362e391e028c414b59c41e19e Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Tue, 9 May 2017 09:36:09 +0100 Subject: [PATCH 01/12] Bug 1362120 - Always allow the 'context-fill'/'context-stroke' keywords in SVG . r=heycam MozReview-Commit-ID: 2xY2NS4u8P0 --- layout/style/nsCSSParser.cpp | 3 +-- layout/style/test/test_bug798843_pref.html | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp index 5b991db1b032..e44fc67282f1 100644 --- a/layout/style/nsCSSParser.cpp +++ b/layout/style/nsCSSParser.cpp @@ -17291,8 +17291,7 @@ CSSParserImpl::ParsePaint(nsCSSPropertyID aPropID) { nsCSSValue x, y; - if (ParseVariant(x, VARIANT_HC | VARIANT_NONE | VARIANT_URL | - VARIANT_OPENTYPE_SVG_KEYWORD, + if (ParseVariant(x, VARIANT_HC | VARIANT_NONE | VARIANT_URL | VARIANT_KEYWORD, nsCSSProps::kContextPatternKTable) != CSSParseResult::Ok) { return false; } diff --git a/layout/style/test/test_bug798843_pref.html b/layout/style/test/test_bug798843_pref.html index f403741c1cba..d1494ee5d0a3 100644 --- a/layout/style/test/test_bug798843_pref.html +++ b/layout/style/test/test_bug798843_pref.html @@ -13,8 +13,6 @@