Use symbolic Color names for some SVG property initial values
Color(0, 0, 0) -> Color::kBlack
Color(255, 255, 255) -> Color::kWhite
Change-Id: I480a472ae5622d9ad58ff2abfcfd8d2c536d1491
Reviewed-on: https://chromium-review.googlesource.com/c/1491616
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Commit-Queue: Stephen Chenney <schenney@chromium.org>
Reviewed-by: Stephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#636030}
diff --git a/third_party/blink/renderer/core/style/svg_computed_style.h b/third_party/blink/renderer/core/style/svg_computed_style.h
index f2a56ff..5ce0bdc 100644
--- a/third_party/blink/renderer/core/style/svg_computed_style.h
+++ b/third_party/blink/renderer/core/style/svg_computed_style.h
@@ -92,10 +92,10 @@
return UnzoomedLength(Length::Fixed(1));
}
static float InitialStopOpacity() { return 1; }
- static Color InitialStopColor() { return Color(0, 0, 0); }
+ static Color InitialStopColor() { return Color::kBlack; }
static float InitialFloodOpacity() { return 1; }
- static Color InitialFloodColor() { return Color(0, 0, 0); }
- static Color InitialLightingColor() { return Color(255, 255, 255); }
+ static Color InitialFloodColor() { return Color::kBlack; }
+ static Color InitialLightingColor() { return Color::kWhite; }
static StyleSVGResource* InitialMaskerResource() { return nullptr; }
static StyleSVGResource* InitialMarkerStartResource() { return nullptr; }
static StyleSVGResource* InitialMarkerMidResource() { return nullptr; }