diff options
author | janus_wel | 2008-11-28 06:54:56 +0000 |
---|---|---|
committer | janus_wel | 2008-11-28 06:54:56 +0000 |
commit | 21f69fb1adf5f8190ea7a709787499371cf080ff (patch) | |
tree | 0f89f00cfd581f38ceed03c77d96b12c4680aa6c | |
parent | c684a316e961757ebf2b6d76e088bf22175dd691 (diff) | |
download | vimperator-plugins-21f69fb1adf5f8190ea7a709787499371cf080ff.tar.bz2 |
bugfix: XUL elements's highlight is out of alignment. change to not highlight.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25221 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | highlight.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/highlight.js b/highlight.js index 9329ce9..60dda04 100644 --- a/highlight.js +++ b/highlight.js @@ -4,7 +4,7 @@ * @description Factory for the object to highlight specified element[s]. this set in plugins.highlighterFactory. * @description-ja 指定した要素をハイライトするオブジェクトを返す Factory 。 plugins.highlighterFactory に構築される。 * @author janus_wel <janus_wel@fb3.so-net.ne.jp> - * @version 0.10 + * @version 0.11 * @minversion 2.0pre 2008/10/16 * ==/VimperatorPlugin== * @@ -85,7 +85,11 @@ Highlighter.prototype = { highlight: function (element) { if (!this._isDisplay(element)) return; - let doc = content.document; + let doc = element.ownerDocument; + + // TODO: highlight XUL elements + if (!doc.body) return; + let scrollX = doc.defaultView.scrollX; let scrollY = doc.defaultView.scrollY; |