[svg] Add feFlood filter node

Several related W3C tests still won't pass until we implement the filter
primitive subregion.

Bug: skia:10841
Change-Id: I9e4beb9da8aa769f23a979ad5116a38fcda85ca4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/343105
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Tyler Denniston <tdenniston@google.com>
diff --git a/modules/svg/src/SkSVGNode.cpp b/modules/svg/src/SkSVGNode.cpp
index acf8f8f..52d7eac 100644
--- a/modules/svg/src/SkSVGNode.cpp
+++ b/modules/svg/src/SkSVGNode.cpp
@@ -18,6 +18,8 @@
     // Uninherited presentation attributes need a non-null default value.
     fPresentationAttributes.fStopColor.set(SkSVGColor(SK_ColorBLACK));
     fPresentationAttributes.fStopOpacity.set(SkSVGNumberType(1.0f));
+    fPresentationAttributes.fFloodColor.set(SkSVGColor(SK_ColorBLACK));
+    fPresentationAttributes.fFloodOpacity.set(SkSVGNumberType(1.0f));
 }
 
 SkSVGNode::~SkSVGNode() { }
@@ -93,6 +95,8 @@
            || PARSE_AND_SET("fill-opacity"     , FillOpacity)
            || PARSE_AND_SET("fill-rule"        , FillRule)
            || PARSE_AND_SET("filter"           , Filter)
+           || PARSE_AND_SET("flood-color"      , FloodColor)
+           || PARSE_AND_SET("flood-opacity"    , FloodOpacity)
            || PARSE_AND_SET("font-family"      , FontFamily)
            || PARSE_AND_SET("font-size"        , FontSize)
            || PARSE_AND_SET("font-style"       , FontStyle)