Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit a462b84

Browse files
committed
Merge branch 'develop' into feature/touchSwipe
Conflicts: lib/Readium.js
2 parents 542dea5 + 44b0d83 commit a462b84

File tree

9 files changed

+457
-429
lines changed

9 files changed

+457
-429
lines changed

grunt/cssmin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ module.exports = function(grunt) {
1818
return {
1919
chromeApp: {
2020
files: {
21-
'build/chrome-app/css/readium-all.css': ['css/sourcesanspro.css', 'css/bootstrap.css', 'css/readium_js.css', 'css/viewer.css', 'css/viewer_audio.css', 'css/settings.css', 'css/library.css']
21+
'build/chrome-app/css/readium-all.css': ['css/sourcesanspro.css', 'css/bootstrap.css', 'css/bootstrap-accessibility.css', 'css/readium_js.css', 'css/viewer.css', 'css/viewer_audio.css', 'css/settings.css', 'css/library.css']
2222
}
2323
},
2424
cloudReader: {
2525
files: {
26-
'build/cloud-reader/css/readium-all.css': ['css/sourcesanspro.css', 'css/bootstrap.css', 'css/readium_js.css', 'css/viewer.css', 'css/viewer_audio.css', 'css/settings.css', 'css/library.css']
26+
'build/cloud-reader/css/readium-all.css': ['css/sourcesanspro.css', 'css/bootstrap.css', 'css/bootstrap-accessibility.css', 'css/readium_js.css', 'css/viewer.css', 'css/viewer_audio.css', 'css/settings.css', 'css/library.css']
2727
}
2828
},
2929
cloudReaderLite: {
3030
files: {
31-
'build/cloud-reader-lite/css/readium-all.css': ['css/sourcesanspro.css', 'css/bootstrap.css', 'css/readium_js.css', 'css/viewer.css', 'css/viewer_audio.css', 'css/settings.css']
31+
'build/cloud-reader-lite/css/readium-all.css': ['css/sourcesanspro.css', 'css/bootstrap.css', 'css/bootstrap-accessibility.css', 'css/readium_js.css', 'css/viewer.css', 'css/viewer_audio.css', 'css/settings.css']
3232
}
3333
}
3434
};

lib/EpubLibrary.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Versioning){
6161
} else {
6262
cssRule = styleSheet.rules[ii];
6363
}
64-
if (cssRule) {
64+
if (cssRule && cssRule.selectorText) {
6565
if (cssRule.selectorText.toLowerCase()=='.library-item') {
6666
heightRule = cssRule;
6767
}
@@ -79,6 +79,7 @@ Versioning){
7979

8080

8181
var setItemHeight = function(){
82+
if (!heightRule || !noCoverRule) return;
8283

8384
var medWidth = 2,
8485
smWidth = 3,

lib/EpubReader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,9 +798,9 @@ Readium){
798798
$(document.body).removeClass('hide-ui');
799799
setTimeout(function(){ $("#aboutButt1").focus(); }, 50);
800800
});
801-
$('#about-dialog').on('shown.bs.modal', function(){
801+
$('#about-dialog').on('shown.bs.modal', function(){
802802
Keyboard.scope('about');
803-
});
803+
});
804804

805805
var readerSettings;
806806
if (settings.reader){
@@ -910,7 +910,7 @@ Readium){
910910
};
911911

912912
return {
913-
loadUI : applyKeyboardSettingsAndLoadUi,
913+
loadUI : applyKeyboardSettingsAndLoadUi,
914914
unloadUI : unloadReaderUI
915915
};
916916

lib/Readium.js

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ define('text',['module'], function (module) {
367367
});
368368

369369

370-
define('text!version.json',[],function () { return '{"readiumJs":{"sha":"0dc45978a2850e32bb2b3d5ff894d9ce1e306814","tag":"Release-0.10-395-g0dc4597","clean":true},"readiumSharedJs":{"sha":"1375f2de8ab214e352fb8ac863a71db150da84da","tag":"Release-0.10-474-g1375f2d","clean":true}}';});
370+
define('text!version.json',[],function () { return '{"readiumJs":{"sha":"4242280394c045dd5d460a36041022b985c897b0","tag":"Release-0.10-397-g4242280","clean":true},"readiumSharedJs":{"sha":"94a0dc7d5bae04540b715ce17a68f419394f5e03","tag":"Release-0.10-477-g94a0dc7","clean":true}}';});
371371

372372
/*
373373
This code is required to IE for console shim
@@ -20525,13 +20525,20 @@ ReadiumSDK.Views.ReflowableView = function(options, reader){
2052520525
_$epubHtml = $("html", epubContentDocument);
2052620526
_$htmlBody = $("body", _$epubHtml);
2052720527

20528-
// Video surface sometimes (depends on the video codec) disappears from CSS column (i.e. reflow page) during playback (audio continues to play normally, but video canvas is invisible).
20529-
// Enabling CSS3D fixes this Chrome-specific rendering bug.
20528+
// TODO: how to address this correctly across all the affected platforms?!
20529+
// Video surface sometimes (depends on the video codec) disappears from CSS column (i.e. reflow page) during playback
20530+
// (audio continues to play normally, but video canvas is invisible).
20531+
// https://github.com/readium/readium-js-viewer/issues/265#issuecomment-73018762
20532+
// ...Meanwhile, reverting https://github.com/readium/readium-js-viewer/issues/239
20533+
// by commenting the code below (which unfortunately only works with some GPU / codec configurations,
20534+
// but actually fails on several other machines!!)
20535+
/*
2053020536
if(window.chrome
2053120537
&& window.navigator.vendor === "Google Inc.") // TODO: Opera (WebKit) sometimes suffers from this rendering bug too (depends on the video codec), but unfortunately GPU-accelerated rendering makes the video controls unresponsive!!
2053220538
{
2053320539
$("video", _$htmlBody).css("transform", "translateZ(0)");
2053420540
}
20541+
*/
2053520542

2053620543
_htmlBodyIsVerticalWritingMode = false;
2053720544
_htmlBodyIsLTRDirection = true;
@@ -29756,7 +29763,17 @@ define('epub-fetch/iframe_zip_loader',['URIjs'], function(URI){
2975629763
// TODO: Currently using the document.write() approach only for IE, as it breaks CSS selectors
2975729764
// with namespaces for some reason (e.g. the childrens-media-query sample EPUB)
2975829765
iframe.contentWindow.document.open();
29759-
iframe.contentWindow.document.write(contentDocumentData);
29766+
29767+
// Currently not handled automatically by winstore-jscompat,
29768+
// so we're doing it manually. See:
29769+
// https://github.com/MSOpenTech/winstore-jscompat/
29770+
if (window.MSApp && window.MSApp.execUnsafeLocalFunction) {
29771+
window.MSApp.execUnsafeLocalFunction(function() {
29772+
iframe.contentWindow.document.write(contentDocumentData);
29773+
});
29774+
} else {
29775+
iframe.contentWindow.document.write(contentDocumentData);
29776+
}
2976029777
}
2976129778

2976229779
iframe.onload = function () {

0 commit comments

Comments
 (0)