mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-11 01:25:45 +01:00
Move DOM and config properties from the util namespace to the DOM and config namespaces, respectively.
This commit is contained in:
@@ -403,8 +403,8 @@ var RangeFind = Class("RangeFind", {
|
||||
|
||||
focus: function focus() {
|
||||
if (this.lastRange)
|
||||
var node = util.evaluateXPath(RangeFind.selectNodePath,
|
||||
this.lastRange.commonAncestorContainer).snapshotItem(0);
|
||||
var node = DOM.XPath(RangeFind.selectNodePath,
|
||||
this.lastRange.commonAncestorContainer).snapshotItem(0);
|
||||
if (node) {
|
||||
node.focus();
|
||||
// Re-highlight collapsed selection
|
||||
@@ -517,7 +517,7 @@ var RangeFind = Class("RangeFind", {
|
||||
|
||||
for (let frame in array.iterValues(win.frames)) {
|
||||
let range = doc.createRange();
|
||||
if (util.computedStyle(frame.frameElement).visibility == "visible") {
|
||||
if (DOM(frame.frameElement).style.visibility == "visible") {
|
||||
range.selectNode(frame.frameElement);
|
||||
pushRange(pageStart, RangeFind.endpoint(range, true));
|
||||
pageStart = RangeFind.endpoint(range, false);
|
||||
|
||||
Reference in New Issue
Block a user