1
1
namespace AngleSharp . Css . Dom
2
2
{
3
3
using AngleSharp . Attributes ;
4
- using AngleSharp . Css . Extensions ;
5
4
using AngleSharp . Dom ;
6
5
7
6
/// <summary>
@@ -16,31 +15,25 @@ public static class StyleUtilityExtensions
16
15
/// </summary>
17
16
[ DomName ( "cascadedStyle" ) ]
18
17
[ 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 ) ;
23
20
24
21
/// <summary>
25
22
/// Gets a live CSS declaration block with only the default
26
23
/// properties representing the value for the context object.
27
24
/// </summary>
28
25
[ DomName ( "defaultStyle" ) ]
29
26
[ 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 ) ;
34
29
35
30
/// <summary>
36
31
/// Gets a live CSS declaration block with properties
37
32
/// that represent the value computed for the context object.
38
33
/// </summary>
39
34
[ DomName ( "rawComputedStyle" ) ]
40
35
[ 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 ) ;
45
38
}
46
39
}
0 commit comments