aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/html.cc b/src/html.cc
index c06fd172..17bba438 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -4026,6 +4026,17 @@ static void Html_display_listitem(DilloHtml *html)
}
}
+bool a_Html_should_display(DilloHtml *html)
+{
+ if (S_TOP(html)->display_none)
+ return false;
+
+ if (html->style()->display == DISPLAY_NONE)
+ return false;
+
+ return true;
+}
+
/**
* Process a tag, given as 'tag' and 'tagsize'. -- tagsize is [1 based]
* ('tag' must include the enclosing angle brackets)