Skip to content

Commit aaea4bd

Browse files
committed
Removed extensions namespace
1 parent 1322a10 commit aaea4bd

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

src/AngleSharp.Css/Dom/Internal/Rules/CssImportRule.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
namespace AngleSharp.Css.Dom
1+
namespace AngleSharp.Css.Dom
22
{
3-
using AngleSharp.Css.Extensions;
43
using System;
54
using System.IO;
65

src/AngleSharp.Css/Dom/Internal/Rules/CssNamespaceRule.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
namespace AngleSharp.Css.Dom
1+
namespace AngleSharp.Css.Dom
22
{
3-
using AngleSharp.Css.Extensions;
43
using AngleSharp.Dom;
54
using System;
65
using System.IO;
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
namespace AngleSharp.Css.Dom
22
{
33
using AngleSharp.Attributes;
4-
using AngleSharp.Css.Extensions;
54
using AngleSharp.Dom;
65

76
/// <summary>
@@ -16,31 +15,25 @@ public static class StyleUtilityExtensions
1615
/// </summary>
1716
[DomName("cascadedStyle")]
1817
[DomAccessor(Accessors.Getter)]
19-
public static ICssStyleDeclaration GetCascadedStyle(this IPseudoElement element)
20-
{
21-
return element.Owner.DefaultView.GetStyleCollection().ComputeCascadedStyle(element);
22-
}
18+
public static ICssStyleDeclaration GetCascadedStyle(this IPseudoElement element) =>
19+
element.Owner.DefaultView.GetStyleCollection().ComputeCascadedStyle(element);
2320

2421
/// <summary>
2522
/// Gets a live CSS declaration block with only the default
2623
/// properties representing the value for the context object.
2724
/// </summary>
2825
[DomName("defaultStyle")]
2926
[DomAccessor(Accessors.Getter)]
30-
public static ICssStyleDeclaration GetDefaultStyle(this IPseudoElement element)
31-
{
32-
return element.Owner.DefaultView.ComputeDefaultStyle(element);
33-
}
27+
public static ICssStyleDeclaration GetDefaultStyle(this IPseudoElement element) =>
28+
element.Owner.DefaultView.ComputeDefaultStyle(element);
3429

3530
/// <summary>
3631
/// Gets a live CSS declaration block with properties
3732
/// that represent the value computed for the context object.
3833
/// </summary>
3934
[DomName("rawComputedStyle")]
4035
[DomAccessor(Accessors.Getter)]
41-
public static ICssStyleDeclaration GetRawComputedStyle(this IPseudoElement element)
42-
{
43-
return element.Owner.DefaultView.ComputeRawStyle(element);
44-
}
36+
public static ICssStyleDeclaration GetRawComputedStyle(this IPseudoElement element) =>
37+
element.Owner.DefaultView.ComputeRawStyle(element);
4538
}
4639
}

0 commit comments

Comments
 (0)