зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1046573 - Add an observer notification for newly created selection objects; r=ehsan
This commit is contained in:
Родитель
59d69dd939
Коммит
4ea8e680aa
|
@ -362,6 +362,12 @@ nsFrameSelection::nsFrameSelection()
|
|||
//alwaysoverrides these values.
|
||||
mDelayedMouseEventIsShift = false;
|
||||
mDelayedMouseEventClickCount = 0;
|
||||
|
||||
nsCOMPtr<nsIObserverService> observerService =
|
||||
mozilla::services::GetObserverService();
|
||||
if (observerService) {
|
||||
observerService->NotifyObservers(this, "selection-object-created", nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче