mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 719026 - Blue background color remains for inputs, links etc, when panning inside iframes. r=wesj
This commit is contained in:
parent
379b93ac59
commit
ee72ccd19f
@ -2740,6 +2740,14 @@ var BrowserEventHandler = {
|
||||
},
|
||||
|
||||
_cancelTapHighlight: function _cancelTapHighlight() {
|
||||
if (!this._highlightElement)
|
||||
return;
|
||||
|
||||
// If the active element is in a sub-frame, we need to make that frame's document
|
||||
// active to remove the element's active state.
|
||||
if (this._highlightElement.ownerDocument != BrowserApp.selectedBrowser.contentWindow.document)
|
||||
DOMUtils.setContentState(this._highlightElement.ownerDocument.documentElement, kStateActive);
|
||||
|
||||
DOMUtils.setContentState(BrowserApp.selectedBrowser.contentWindow.document.documentElement, kStateActive);
|
||||
this._highlightElement = null;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user