From 6f99d885b0af0fb765779df49f14eeb9edfff2c6 Mon Sep 17 00:00:00 2001 From: MaceWindu Date: Wed, 9 Feb 2022 11:06:26 +0100 Subject: [PATCH 1/2] Fix AngleSharp dependency version (fix #103) --- CHANGELOG.md | 5 +++++ src/AngleSharp.Css/AngleSharp.Css.csproj | 4 ++-- .../AngleSharp.Performance.Css.csproj | 2 +- src/Directory.Build.props | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e628562..87c8fe49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 0.16.4 +Released on ?, February ? 2022. + +- Fixed issue with wrong AngleSharp version used for build (#103) + # 0.16.3 Released on Wednesday, January 5 2022. diff --git a/src/AngleSharp.Css/AngleSharp.Css.csproj b/src/AngleSharp.Css/AngleSharp.Css.csproj index d2665667..2516cca6 100644 --- a/src/AngleSharp.Css/AngleSharp.Css.csproj +++ b/src/AngleSharp.Css/AngleSharp.Css.csproj @@ -21,10 +21,10 @@ - + false - \ No newline at end of file + diff --git a/src/AngleSharp.Performance.Css/AngleSharp.Performance.Css.csproj b/src/AngleSharp.Performance.Css/AngleSharp.Performance.Css.csproj index 257380ad..b7d2e6c5 100644 --- a/src/AngleSharp.Performance.Css/AngleSharp.Performance.Css.csproj +++ b/src/AngleSharp.Performance.Css/AngleSharp.Performance.Css.csproj @@ -21,7 +21,7 @@ - + \ No newline at end of file diff --git a/src/Directory.Build.props b/src/Directory.Build.props index fa154fe7..9b4fc5a8 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -2,6 +2,6 @@ Extends the CSSOM from the core AngleSharp library. AngleSharp.Css - 0.16.3 + 0.16.4 From 1e7ff8dc860876fcad2ad7419a5d70b1dabe2f0e Mon Sep 17 00:00:00 2001 From: Sheshnath Verma Date: Tue, 15 Feb 2022 13:36:17 +0530 Subject: [PATCH 2/2] make color structure public --- src/AngleSharp.Css/Values/Primitives/Color.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AngleSharp.Css/Values/Primitives/Color.cs b/src/AngleSharp.Css/Values/Primitives/Color.cs index 490b99c9..9f2ea65c 100644 --- a/src/AngleSharp.Css/Values/Primitives/Color.cs +++ b/src/AngleSharp.Css/Values/Primitives/Color.cs @@ -10,7 +10,7 @@ namespace AngleSharp.Css.Values /// Represents a color value. /// [StructLayout(LayoutKind.Explicit, Pack = 1, CharSet = CharSet.Unicode)] - struct Color : IEquatable, IComparable, ICssPrimitiveValue + public struct Color : IEquatable, IComparable, ICssPrimitiveValue { #region Basic colors @@ -337,7 +337,7 @@ public static Color FromHwba(Double h, Double w, Double b, Double alpha) var green = 0.0; var blue = 0.0; - if (ratio < 1.0) + if (ratio < 1.0) { w *= ratio; b *= ratio; @@ -354,7 +354,7 @@ public static Color FromHwba(Double h, Double w, Double b, Double alpha) var v = 1.0 - b; var n = w + f * (v - w); - switch (p) + switch (p) { default: case 6: