mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 988102 - Opening inspector scrolls the content page all the way to the top;r=bgrins
This commit is contained in:
parent
ddf565a782
commit
30e00019be
@ -289,9 +289,7 @@ MarkupView.prototype = {
|
||||
let done = this._inspector.updating("markup-view");
|
||||
if (selection.isNode()) {
|
||||
if (this._shouldNewSelectionBeHighlighted()) {
|
||||
this._brieflyShowBoxModel(selection.nodeFront, {
|
||||
scrollIntoView: true
|
||||
});
|
||||
this._brieflyShowBoxModel(selection.nodeFront, {});
|
||||
}
|
||||
|
||||
this.showNode(selection.nodeFront, true).then(() => {
|
||||
|
@ -107,7 +107,6 @@ let HighlighterActor = protocol.ActorClass({
|
||||
}, {
|
||||
request: {
|
||||
node: Arg(0, "domnode"),
|
||||
scrollIntoView: Option(1),
|
||||
region: Option(1)
|
||||
}
|
||||
}),
|
||||
@ -475,10 +474,6 @@ BoxModelHighlighter.prototype = {
|
||||
this._attachPageListeners();
|
||||
this._update();
|
||||
this._trackMutations();
|
||||
|
||||
if (options.scrollIntoView) {
|
||||
this.chromeLayoutHelper.scrollIntoViewIfNeeded(node);
|
||||
}
|
||||
},
|
||||
|
||||
_trackMutations: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user