@@ -11,7 +11,7 @@ namespace AngleSharp.Css
11
11
/// <summary>
12
12
/// A set of useful extension methods for the StyleCollection class.
13
13
/// </summary>
14
- static class StyleCollectionExtensions
14
+ public static class StyleCollectionExtensions
15
15
{
16
16
#region Methods
17
17
@@ -20,7 +20,7 @@ static class StyleCollectionExtensions
20
20
/// </summary>
21
21
/// <param name="window">The window to host the style collection.</param>
22
22
/// <returns>The device-bound style collection.</returns>
23
- public static StyleCollection GetStyleCollection ( this IWindow window )
23
+ public static IStyleCollection GetStyleCollection ( this IWindow window )
24
24
{
25
25
var document = window . Document ;
26
26
var ctx = document . Context ;
@@ -40,7 +40,7 @@ public static StyleCollection GetStyleCollection(this IWindow window)
40
40
/// <param name="element">The element that is questioned.</param>
41
41
/// <param name="pseudoSelector">The optional pseudo selector to use.</param>
42
42
/// <returns>The style declaration containing all the declarations.</returns>
43
- public static ICssStyleDeclaration ComputeDeclarations ( this StyleCollection rules , IElement element , String pseudoSelector = null )
43
+ public static ICssStyleDeclaration ComputeDeclarations ( this IStyleCollection rules , IElement element , String pseudoSelector = null )
44
44
{
45
45
var computedStyle = new CssStyleDeclaration ( element . Owner ? . Context ) ;
46
46
var nodes = element . GetAncestors ( ) . OfType < IElement > ( ) ;
@@ -74,7 +74,7 @@ public static ICssStyleDeclaration ComputeDeclarations(this StyleCollection rule
74
74
/// <param name="element">The element to compute the cascade for.</param>
75
75
/// <param name="parent">The potential parent for the cascade.</param>
76
76
/// <returns>Returns the cascaded read-only style declaration.</returns>
77
- public static ICssStyleDeclaration ComputeCascadedStyle ( this StyleCollection styleCollection , IElement element , ICssStyleDeclaration parent = null )
77
+ public static ICssStyleDeclaration ComputeCascadedStyle ( this IStyleCollection styleCollection , IElement element , ICssStyleDeclaration parent = null )
78
78
{
79
79
var computedStyle = new CssStyleDeclaration ( element . Owner ? . Context ) ;
80
80
var rules = styleCollection . SortBySpecificity ( element ) ;
0 commit comments