Changeset 18756 in webkit


Ignore:
Timestamp:
Jan 10, 2007 8:44:54 PM (17 years ago)
Author:
bdash
Message:

2007-01-10 Mitz Pettel <mitz@webkit.org>

Reviewed by Darin.

  • WebView/WebHTMLView.mm: (-[WebHTMLView _resetCachedWebPreferences:]): (-[WebHTMLView setDataSource:]): Added a call to _resetCachedWebPreferences:. Added an assertion that the view is not closed, instead of reopening it. Reopening should not occur, now that <http://bugs.webkit.org/show_bug.cgi?id=12087> is fixed.
Location:
trunk/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/ChangeLog

    r18748 r18756  
     12007-01-10  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Darin.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=11775
     6          'Show URLs in Tool Tips' preference is ignored
     7
     8        * WebView/WebHTMLView.mm:
     9        (-[WebHTMLView _resetCachedWebPreferences:]):
     10        (-[WebHTMLView setDataSource:]): Added a call to _resetCachedWebPreferences:.
     11        Added an assertion that the view is not closed, instead of reopening it.
     12        Reopening should not occur, now that <http://bugs.webkit.org/show_bug.cgi?id=12087>
     13        is fixed.
     14
    1152007-01-10  Beth Dakin  <bdakin@apple.com>
    216
  • trunk/WebKit/WebView/WebHTMLView.mm

    r18725 r18756  
    19021902    WebPreferences *preferences = [[self _webView] preferences];
    19031903    // Check for nil because we might not yet have an associated webView when this is called
    1904     if (preferences == nil) {
     1904    if (preferences == nil)
    19051905        preferences = [WebPreferences standardPreferences];
    1906     }
     1906
    19071907    _private->showsURLsInToolTips = [preferences showsURLsInToolTips];
    19081908}
     
    30743074{
    30753075    ASSERT(dataSource);
    3076     if (_private->dataSource == dataSource)
    3077         return;
    3078     ASSERT(!_private->dataSource);
    3079     _private->closed = NO; // setting a data source reopens a closed view
    3080     _private->dataSource = [dataSource retain];
    3081     [_private->pluginController setDataSource:dataSource];
    3082     [self addMouseMovedObserver];
     3076    if (_private->dataSource != dataSource) {
     3077        ASSERT(!_private->dataSource);
     3078        ASSERT(!_private->closed);
     3079        _private->dataSource = [dataSource retain];
     3080        [_private->pluginController setDataSource:dataSource];
     3081        [self addMouseMovedObserver];
     3082    }
     3083    [self _resetCachedWebPreferences:nil];
    30833084}
    30843085
Note: See TracChangeset for help on using the changeset viewer.