Skip to content

Commit d4fe7b7

Browse files
committed
Updated with debugger display (#43)
1 parent 6866711 commit d4fe7b7

12 files changed

+32
-8
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
namespace AngleSharp.Css.Dom
1+
namespace AngleSharp.Css.Dom
22
{
33
using AngleSharp.Text;
44
using System;
5+
using System.Diagnostics;
56
using System.IO;
67

78
/// <summary>
89
/// Represents the CSS @charset rule.
910
/// </summary>
11+
[DebuggerDisplay(null, Name = "CssCharsetRule ({CharacterSet})")]
1012
sealed class CssCharsetRule : CssRule, ICssCharsetRule
1113
{
1214
#region Fields

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
namespace AngleSharp.Css.Dom
1+
namespace AngleSharp.Css.Dom
22
{
33
using AngleSharp.Css.Parser;
44
using AngleSharp.Dom;
55
using System;
6+
using System.Diagnostics;
67
using System.IO;
78

89
/// <summary>
910
/// Contains the rules specified by a @document { /* ... */ } rule.
1011
/// </summary>
12+
[DebuggerDisplay(null, Name = "CssDocumentRule ({ConditionText})")]
1113
sealed class CssDocumentRule : CssGroupingRule, ICssDocumentRule
1214
{
1315
#region Fields

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
namespace AngleSharp.Css.Dom
1+
namespace AngleSharp.Css.Dom
22
{
33
using AngleSharp.Css;
44
using System;
55
using System.Collections.Generic;
6+
using System.Diagnostics;
67

78
/// <summary>
89
/// Represents the @font-face rule.
910
/// </summary>
11+
[DebuggerDisplay(null, Name = "CssFontFaceRule ({FontFamily})")]
1012
sealed class CssFontFaceRule : CssDeclarationRule, ICssFontFaceRule
1113
{
1214
#region Fields
@@ -35,6 +37,8 @@ internal CssFontFaceRule(ICssStyleSheet owner)
3537

3638
#region Properties
3739

40+
internal String FontFamily => GetValue(PropertyNames.FontFamily);
41+
3842
String ICssFontFaceRule.Family
3943
{
4044
get => GetValue(PropertyNames.FontFamily);

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

+2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
namespace AngleSharp.Css.Dom
22
{
33
using System;
4+
using System.Diagnostics;
45
using System.IO;
56

67
/// <summary>
78
/// Represents a CSS import rule.
89
/// </summary>
10+
[DebuggerDisplay(null, Name = "CssImportRule ({Href})")]
911
sealed class CssImportRule : CssRule, ICssImportRule
1012
{
1113
#region Fields

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

+2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ namespace AngleSharp.Css.Dom
22
{
33
using AngleSharp.Css.Parser;
44
using System;
5+
using System.Diagnostics;
56
using System.IO;
67

78
/// <summary>
89
/// Represents a CSS @keyframe rule.
910
/// </summary>
11+
[DebuggerDisplay(null, Name = "CssKeyframeRule ({KeyText})")]
1012
sealed class CssKeyframeRule : CssRule, ICssKeyframeRule
1113
{
1214
#region Fields

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
namespace AngleSharp.Css.Dom
1+
namespace AngleSharp.Css.Dom
22
{
33
using AngleSharp.Text;
44
using System;
5+
using System.Diagnostics;
56
using System.IO;
67
using System.Linq;
78

89
/// <summary>
910
/// Represents an @keyframes rule.
1011
/// </summary>
12+
[DebuggerDisplay(null, Name = "CssKeyframesRule ({Name})")]
1113
sealed class CssKeyframesRule : CssGroupingRule, ICssKeyframesRule
1214
{
1315
#region Fields

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
namespace AngleSharp.Css.Dom
1+
namespace AngleSharp.Css.Dom
22
{
33
using System;
4+
using System.Diagnostics;
45
using System.IO;
56

67
/// <summary>
78
/// Represents a CSS @media rule.
89
/// </summary>
10+
[DebuggerDisplay(null, Name = "CssMediaRule ({ConditionText})")]
911
sealed class CssMediaRule : CssConditionRule, ICssMediaRule
1012
{
1113
#region Fields

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

+2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ namespace AngleSharp.Css.Dom
22
{
33
using AngleSharp.Dom;
44
using System;
5+
using System.Diagnostics;
56
using System.IO;
67

78
/// <summary>
89
/// Represents an @namespace rule.
910
/// </summary>
11+
[DebuggerDisplay(null, Name = "CssNamespaceRule ({Prefix})")]
1012
sealed class CssNamespaceRule : CssRule, ICssNamespaceRule
1113
{
1214
#region Fields

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
namespace AngleSharp.Css.Dom
1+
namespace AngleSharp.Css.Dom
22
{
33
using System;
4+
using System.Diagnostics;
45
using System.IO;
56

67
/// <summary>
78
/// Represents the @page rule.
89
/// </summary>
10+
[DebuggerDisplay(null, Name = "CssPageRule ({SelectorText})")]
911
sealed class CssPageRule : CssRule, ICssPageRule
1012
{
1113
#region Fields

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
namespace AngleSharp.Css.Dom
22
{
33
using System;
4+
using System.Diagnostics;
45
using System.IO;
56

67
/// <summary>
78
/// Represents a CSS style rule.
89
/// </summary>
9-
sealed class CssStyleRule : CssRule, ICssStyleRule
10+
[DebuggerDisplay(null, Name = "CssStyleRule ({SelectorText})")]
11+
sealed class CssStyleRule : CssRule, ICssStyleRule
1012
{
1113
#region Fields
1214

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

+2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ namespace AngleSharp.Css.Dom
33
using AngleSharp.Css.Parser;
44
using AngleSharp.Dom;
55
using System;
6+
using System.Diagnostics;
67
using System.IO;
78

89
/// <summary>
910
/// Represents an @supports rule.
1011
/// </summary>
12+
[DebuggerDisplay(null, Name = "CssSupportsRule ({ConditionText})")]
1113
sealed class CssSupportsRule : CssConditionRule, ICssSupportsRule
1214
{
1315
#region Fields

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace AngleSharp.Css.Dom
1+
namespace AngleSharp.Css.Dom
22
{
33
using AngleSharp.Css;
44
using System;

0 commit comments

Comments
 (0)