bump crengine: LI and CITE fixes are now the defaults (#3976)

Books previously opened (that have a metadata.lua, whether with
highlights or not, but because they all have a last_xpointer that
points to the current page, that can be broken too by the changes)
will continue to have the old wrong behaviour, so they won't be
impacted by the breaking changes.
Update cre_dom_version code to use the new functions from cre.cpp.
Remove these Workarounds from Style tweaks.
This commit is contained in:
poire-z
2018-05-25 00:22:08 +02:00
committed by GitHub
parent aa303d4aae
commit b498d872be
5 changed files with 5 additions and 37 deletions

View File

@@ -20,7 +20,6 @@ local CreDocument = Document:new{
_document = false,
_loaded = false,
_cre_dom_version = nil,
line_space_percent = 100,
default_font = "Noto Serif",
@@ -121,9 +120,6 @@ function CreDocument:init()
error(self._document) -- will contain error message
end
-- get DOM engine latest version
self._cre_dom_version = self._document:getIntProperty("crengine.dom.version")
-- adjust font sizes according to screen dpi
self._document:adjustFontSizes(Screen:getDPI())
@@ -143,7 +139,7 @@ function CreDocument:init()
end
function CreDocument:getLatestDomVersion()
return self._cre_dom_version
return cre.getLatestDomVersion()
end
function CreDocument:getOldestDomVersion()
@@ -151,7 +147,8 @@ function CreDocument:getOldestDomVersion()
end
function CreDocument:requestDomVersion(version)
self._document:setIntProperty("crengine.dom.version", version)
logger.dbg("CreDocument: requesting DOM version:", version)
cre.requestDomVersion(version)
end
function CreDocument:loadDocument(full_document)