Web Inspector: wasShown is called twice when show() is called from within wasShown
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Nov 2012 10:13:35 +0000 (10:13 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Nov 2012 10:13:35 +0000 (10:13 +0000)
commitaec25d7507f0252903c7acd232e569a3bdff32d7
tree23f2db29ac322d079f324fae3def2ad4450c1441
parent7dc309940e78e157474c3bd4f5c7005e8b206b4b
Web Inspector: wasShown is called twice when show() is called from within wasShown
https://bugs.webkit.org/show_bug.cgi?id=101858

Reviewed by Vsevolod Vlasov.

Source/WebCore:

When we attach views lazily from within wasShown, the views were getting wasShown notification twice.
We now mute one of them.

* inspector/front-end/View.js:
(WebInspector.View):
(WebInspector.View.prototype._inNotification):
(WebInspector.View.prototype._parentIsShowing):
(WebInspector.View.prototype._callOnVisibleChildren):
(WebInspector.View.prototype._processWasShown):
(WebInspector.View.prototype._processWillHide):
(WebInspector.View.prototype._processOnResize):
(WebInspector.View.prototype._notify):
(WebInspector.View.prototype.show):

LayoutTests:

* inspector/view-events-expected.txt:
* inspector/view-events.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@134199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/view-events-expected.txt
LayoutTests/inspector/view-events.html
Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/View.js