aboutsummaryrefslogtreecommitdiff
path: root/ext/js/dom
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/dom')
-rw-r--r--ext/js/dom/text-source-element.js2
-rw-r--r--ext/js/dom/text-source-range.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/dom/text-source-element.js b/ext/js/dom/text-source-element.js
index 264a913e..257b9df4 100644
--- a/ext/js/dom/text-source-element.js
+++ b/ext/js/dom/text-source-element.js
@@ -60,7 +60,7 @@ class TextSourceElement {
return this._content;
}
- setEndOffset(length, fromEnd=false) {
+ setEndOffset(length, _layoutAwareScan, fromEnd) {
if (fromEnd) {
const delta = Math.min(this._fullContent.length - this._endOffset, length);
this._endOffset += delta;
diff --git a/ext/js/dom/text-source-range.js b/ext/js/dom/text-source-range.js
index e0e2c5b0..5e3e814c 100644
--- a/ext/js/dom/text-source-range.js
+++ b/ext/js/dom/text-source-range.js
@@ -66,7 +66,7 @@ class TextSourceRange {
return this._content;
}
- setEndOffset(length, layoutAwareScan, fromEnd=false) {
+ setEndOffset(length, layoutAwareScan, fromEnd) {
const state = (
fromEnd ?
new DOMTextScanner(this._range.endContainer, this._range.endOffset, !layoutAwareScan, layoutAwareScan).seek(length) :