2009-04-14 Simon Fraser <simon.fraser@apple.com>

        Reviewed by Dan Bernstein

        https://bugs.webkit.org/show_bug.cgi?id=25157

        Move the run loop observer cleanup from -close
        to -_close.

        * WebView/WebView.mm:
        (-[WebView _close]):
        (-[WebView close]):

git-svn-id: svn://svn.chromium.org/blink/trunk@42535 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 71beed42
2009-04-14 Simon Fraser <simon.fraser@apple.com>
Reviewed by Dan Bernstein
https://bugs.webkit.org/show_bug.cgi?id=25157
Move the run loop observer cleanup from -close
to -_close.
* WebView/WebView.mm:
(-[WebView _close]):
(-[WebView close]):
2009-04-14 Anders Carlsson <andersca@apple.com> 2009-04-14 Anders Carlsson <andersca@apple.com>
Reviewed by Sam Weinig. Reviewed by Sam Weinig.
......
...@@ -1134,6 +1134,10 @@ static bool runningTigerMail() ...@@ -1134,6 +1134,10 @@ static bool runningTigerMail()
[[NSSpellChecker sharedSpellChecker] closeSpellDocumentWithTag:_private->spellCheckerDocumentTag]; [[NSSpellChecker sharedSpellChecker] closeSpellDocumentWithTag:_private->spellCheckerDocumentTag];
_private->hasSpellCheckerDocumentTag = NO; _private->hasSpellCheckerDocumentTag = NO;
} }
#if USE(ACCELERATED_COMPOSITING)
[_private _clearViewUpdateRunLoopObserver];
#endif
[[NSDistributedNotificationCenter defaultCenter] removeObserver:self]; [[NSDistributedNotificationCenter defaultCenter] removeObserver:self];
[[NSNotificationCenter defaultCenter] removeObserver:self]; [[NSNotificationCenter defaultCenter] removeObserver:self];
...@@ -2569,10 +2573,6 @@ static bool needsWebViewInitThreadWorkaround() ...@@ -2569,10 +2573,6 @@ static bool needsWebViewInitThreadWorkaround()
{ {
// _close existed first, and some clients might be calling or overriding it, so call through. // _close existed first, and some clients might be calling or overriding it, so call through.
[self _close]; [self _close];
#if USE(ACCELERATED_COMPOSITING)
[_private _clearViewUpdateRunLoopObserver];
#endif
} }
- (void)setShouldCloseWithWindow:(BOOL)close - (void)setShouldCloseWithWindow:(BOOL)close
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment