Jonas Jenwald
f27b5013e2
Replace unnecessary `bind(this)` statements with arrow functions in `web/` files
...
By using `let`, which is block-scoped, instead of `var` in a couple of places we're able to get rid of additional `bind` calls.
8 years ago
Jonas Jenwald
2a0207ccaf
Enable the `object-shorthand` ESLint rule in `web`
...
Please see http://eslint.org/docs/rules/object-shorthand .
For the most part, these changes are of the search-and-replace kind, and the previously enabled `no-undef` rule should complement the tests in helping ensure that no stupid errors crept into to the patch.
8 years ago
Yury Delendik
25873e92f0
Enable babel translation to enable ES module support.
8 years ago
Jonas Jenwald
bc736fdc7d
Adjust the `brace-style` ESLint rule to disallow single lines (and also enable `no-iterator`)
...
See http://eslint.org/docs/rules/brace-style .
Having the opening/closing braces on the same line can often make the code slightly more difficult to read, in particular for `if`/`else if` statements, compared to using new lines.
This patch also, for consistency with `mozilla-central`, enables the [`no-iterator`](http://eslint.org/docs/rules/no-iterator ) rule. Note that this rule didn't require a single code change.
8 years ago
Jonas Jenwald
70c1a6b120
[Bug 1331081] omit addEventListener/removeEventListener's third parameter when it's false
...
Upstream changes from https://bugzilla.mozilla.org/show_bug.cgi?id=1331081 ; this patch also covers one file, `pdf_print_service.js`, that's not present in mozilla-central.
Fixes 7962.
8 years ago
klemens
6f03f62327
trivial spelling fixes
9 years ago
Yury Delendik
a4c81c203b
Enables debugger only when needed.
9 years ago
Yury Delendik
b6c74f2056
Moves all document.getElementById lookups into viewer.js
9 years ago
Yury Delendik
4165cedc9f
Replace pdfjsLib with module that represents pdf.js.
9 years ago
Yury Delendik
1e3e14e6b2
Exposes all functional members via lib exports and use them in viewer.
9 years ago
Yury Delendik
2edf2792dc
Replaces literal {} created lookup tables with Object.create
9 years ago
Manas
a2ba1b8189
Uses editorconfig to maintain consistent coding styles
...
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
10 years ago
Jonas Jenwald
4ed3074011
Fix regression that prevents downloading of font files in the debugger
...
This is a regression from PR 5366.
11 years ago
Rob Wu
d0845df971
Use Font Loading API if available
...
http://dev.w3.org/csswg/css-font-loading/
11 years ago
Jonas Jenwald
7af46b433d
Fix a regression preventing page change in the Stepper in the debugger
...
This is a regression from ddd3c8fc2f
, which prevents changing pages in the Stepper.
(Apart from fixing the bug, for the sake of consistency, I also removed one instance of `parseInt`.)
11 years ago
Tim van der Meij
ddd3c8fc2f
Use strict equalities in web/debugger.js
11 years ago
Yury Delendik
d53dc2e7d6
Refactors showText: split type3, remove showSpacedText
11 years ago
Jonas Jenwald
8edb5cc804
Fix regression preventing the setting of breakpoints in the Stepper (PDFBug)
11 years ago
Rob Wu
d7dfa447cd
Remove unused (local) variables in web/
11 years ago
Tim van der Meij
b348243866
Fixes lint warning W004 in /web
11 years ago
Yury Delendik
ed8ecfd00a
Cleaning up the viewer and pdfbug; fixes repeats in Stepper
11 years ago
Jonas Jenwald
e9cfae84a0
Fix coding style in web/debugger.js
11 years ago
Brendan Dahl
f4942b11f8
Reduce the memory usage of the operator list.
12 years ago
Brendan Dahl
2bd9901d62
Show sensible output for showText commands in the stepper.
12 years ago
Brendan Dahl
bf72bc94e2
Incrementally render by sending the operator list by chunks as they're ready.
12 years ago
Rob Wu
b46c375126
Compatibility with XHTML documents
...
Previously, when the XHTML doctype + header is active, checks
would fail because a <div>'s tag name is "div" instead of "DIV".
document.activeElement does not exist in Chrome for XHTML documents
== -> ===
12 years ago
Yury Delendik
81f8f92696
Adds web/* and test/* for jshint target
12 years ago
Brendan Dahl
332ae4ce41
Change to the Apache v2 license.
13 years ago
gigaherz
eaffcfa920
Fix some typos in comments and variable names.
...
Fix some nits in debugger.js.
13 years ago
Brendan Dahl
fe0d7d24bc
Update pdfbug style.
13 years ago
Yury Delendik
494fd1ccf9
Fixes make files, removes stats from backend, stepper
13 years ago
Brendan Dahl
4b887fe1c2
Remove unused variable.
13 years ago
Brendan Dahl
3a824f69d4
Fix the stepper beyond page 1.
13 years ago
Brendan Dahl
e07505ff8d
Update stats to use the new pdfBug panel.
13 years ago
Brendan Dahl
0f4730c825
Address review comments.
13 years ago
Brendan Dahl
f17a1679eb
Move debugger to the web folder.
13 years ago
Brendan Dahl
45e3db77f2
Fix the font inspector.
13 years ago
Brendan Dahl
c04ab5fe45
Change name of debugger to stepper.
13 years ago
Brendan Dahl
f54486d8c8
Change how the tools are enabled.
13 years ago
Brendan Dahl
6aa72f411b
Add a few comments.
13 years ago
Brendan Dahl
9fe5eff905
Combining Yury's and my debugging tools.
13 years ago