View HTML: Show matched rules: ignore style & tweaks on long-press

On long-press on the "Show matched stylesheets rules"
buttons, ignore those from our epub.css/html5.css and
from styletweaks, which may make investigating a book
style simpler without their noise.
This commit is contained in:
poire-z committed 2023-07-26 01:05:15 +02:00
1 parent e6d21ad371
commit eecdac930e
2 files changed
+17 -6

No files matched your search

+2 -2
View File
@@ -946,8 +946,8 @@ function CreDocument:getHTMLFromXPointers(xp0, xp1, flags, from_root_node)
end
end
function CreDocument:getStylesheetsMatchingRulesets(node_dataindex)
return self._document:getStylesheetsMatchingRulesets(node_dataindex)
function CreDocument:getStylesheetsMatchingRulesets(node_dataindex, with_main_stylesheet)
return self._document:getStylesheetsMatchingRulesets(node_dataindex, with_main_stylesheet)
end
function CreDocument:getNormalizedXPointer(xp)