Skip to content

Commit fe08360

Browse files
committed
Merged with master
2 parents 7a9d412 + 7aa7f93 commit fe08360

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
# 0.14.1
1+
# 0.14.2
22

33
Released on Thursday, June 11 2020.
44

55
- Fixed issue for representation of `counter()` and `counters()` (#58)
66
- Fixed parsing of numerical font-weight in font shorthand (#57)
7-
- Updated `ComputeDeclarations` and `ComputeCascadedStyle` to support `IEnumerable<ICssStyleRule>` (#54)
7+
8+
# 0.14.1
9+
10+
Released on Monday, May 4 2020.
11+
12+
- Updated `ComputeDeclarations` and `ComputeCascadedStyle` to support `IEnumerable<ICssStyleRule>` (#53)
813

914
# 0.14.0
1015

src/AngleSharp.Css/Extensions/StyleCollectionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static IStyleCollection GetStyleCollection(this IWindow window)
4040
/// <param name="element">The element that is questioned.</param>
4141
/// <param name="pseudoSelector">The optional pseudo selector to use.</param>
4242
/// <returns>The style declaration containing all the declarations.</returns>
43-
public static ICssStyleDeclaration ComputeDeclarations(this IStyleCollection rules, IElement element, String pseudoSelector = null)
43+
public static ICssStyleDeclaration ComputeDeclarations(this IEnumerable<ICssStyleRule> rules, IElement element, String pseudoSelector = null)
4444
{
4545
var computedStyle = new CssStyleDeclaration(element.Owner?.Context);
4646
var nodes = element.GetAncestors().OfType<IElement>();
@@ -74,7 +74,7 @@ public static ICssStyleDeclaration ComputeDeclarations(this IStyleCollection rul
7474
/// <param name="element">The element to compute the cascade for.</param>
7575
/// <param name="parent">The potential parent for the cascade.</param>
7676
/// <returns>Returns the cascaded read-only style declaration.</returns>
77-
public static ICssStyleDeclaration ComputeCascadedStyle(this IStyleCollection styleCollection, IElement element, ICssStyleDeclaration parent = null)
77+
public static ICssStyleDeclaration ComputeCascadedStyle(this IEnumerable<ICssStyleRule> styleCollection, IElement element, ICssStyleDeclaration parent = null)
7878
{
7979
var computedStyle = new CssStyleDeclaration(element.Owner?.Context);
8080
var rules = styleCollection.SortBySpecificity(element);

0 commit comments

Comments
 (0)