зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1675397 - Part 1: Use RefPtr<Element> for nsFocusManager::mFirst{Blur|Focus}Event; r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D95946
This commit is contained in:
Родитель
a87cdef8a4
Коммит
117f50f8ce
|
@ -2118,7 +2118,9 @@ bool nsFocusManager::BlurImpl(BrowsingContext* aBrowsingContextToClear,
|
|||
mFocusedElement = nullptr;
|
||||
return true;
|
||||
}
|
||||
if (element == mFirstBlurEvent) return true;
|
||||
if (element == mFirstBlurEvent) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
RefPtr<BrowsingContext> focusedBrowsingContext = GetFocusedBrowsingContext();
|
||||
|
|
|
@ -870,8 +870,8 @@ class nsFocusManager final : public nsIFocusManager,
|
|||
// these fields store a content node temporarily while it is being focused
|
||||
// or blurred to ensure that a recursive call doesn't refire the same event.
|
||||
// They will always be cleared afterwards.
|
||||
nsCOMPtr<nsIContent> mFirstBlurEvent;
|
||||
nsCOMPtr<nsIContent> mFirstFocusEvent;
|
||||
RefPtr<mozilla::dom::Element> mFirstBlurEvent;
|
||||
RefPtr<mozilla::dom::Element> mFirstFocusEvent;
|
||||
|
||||
// keep track of a window while it is being lowered
|
||||
nsCOMPtr<nsPIDOMWindowOuter> mWindowBeingLowered;
|
||||
|
|
Загрузка…
Ссылка в новой задаче