Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Unified Diff: LayoutTests/svg/dom/rgb-color-parser.html

Issue 114373004: Remove the SVGColor and SVGPaint DOM interfaces (were deprecated). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: text diff fix Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/svg/dom/rgb-color-parser.html
diff --git a/LayoutTests/svg/dom/rgb-color-parser.html b/LayoutTests/svg/dom/rgb-color-parser.html
index e66cc76c7bdc896c9df2ab9fb996d44e38eb44af..0b7662ffab118207599a2f5c2388822b1359b3c6 100644
--- a/LayoutTests/svg/dom/rgb-color-parser.html
+++ b/LayoutTests/svg/dom/rgb-color-parser.html
@@ -38,17 +38,12 @@
try {
stopElement.style.removeProperty("stop-color");
stopElement.style.stopColor = string;
- var stopColor = stopElement.style.getPropertyCSSValue("stop-color");
+ var stopColor = stopElement.style.getPropertyValue("stop-color");
if (!stopColor) {
debug("Failed to parse: " + string);
return;
}
- var rgbColor = stopColor.rgbColor;
- var red = rgbColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER);
- var green = rgbColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER);
- var blue = rgbColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER);
- var rgbColorString = "rgb(" + red + "," + green + "," + blue + ")";
- debug("Parsed as " + rgbColorString + ": " + string);
+ debug("Parsed as " + stopColor + ": " + string);
} catch(e) {
debug("Threw exception " + e + ": " + string);
}

Powered by Google App Engine
This is Rietveld 408576698