about summary refs log tree commit diff stats
path: root/src/html/dom.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/dom.nim')
-rw-r--r--src/html/dom.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 14d46037..4f8b7cef 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -66,6 +66,9 @@ type DocumentReadyState* = enum
   rsComplete = "complete"
 
 type
+  DependencyType* = enum
+    dtHover, dtChecked, dtFocus
+
   Location = ref object
     window: Window
 
@@ -228,6 +231,10 @@ type
     style_cached*: CSSStyleDeclaration
     children_cached: HTMLCollection
 
+    # The owner StyledNode is marked as invalid when one of these no longer
+    # matches the DOM value.
+    prev*: array[DependencyType, bool]
+
   AttrDummyElement = ref object of Element
 
   CSSStyleDeclaration* = ref object