Changeset 44890 in webkit


Ignore:
Timestamp:
Jun 19, 2009 11:21:17 PM (15 years ago)
Author:
sfalken@apple.com
Message:

2009-06-19 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>

Reviewed by Steve Falkenburg.

https://bugs.webkit.org/show_bug.cgi?id=26494
Bug 26494: RenderTheme::themeForPage reads from Settings before it has
been initialized by WebKit

Get the shouldPaintNativeControls preference and update the settings
before initializing the page, as the page depends on it after the
themeForPage change.

  • WebView.cpp: (WebView::initWithFrame):
Location:
trunk/WebKit/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/win/ChangeLog

    r44885 r44890  
     12009-06-19  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
     2
     3        Reviewed by Steve Falkenburg.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=26494
     6        Bug 26494: RenderTheme::themeForPage reads from Settings before it has
     7        been initialized by WebKit
     8
     9        Get the shouldPaintNativeControls preference and update the settings
     10        before initializing the page, as the page depends on it after the
     11        themeForPage change.
     12
     13        * WebView.cpp:
     14        (WebView::initWithFrame):
     15
    1162009-06-19  Brian Weinstein  <bweinstein@apple.com>
    217
  • trunk/WebKit/win/WebView.cpp

    r44883 r44890  
    23152315    WebKitSetApplicationCachePathIfNecessary();
    23162316   
     2317#if USE(SAFARI_THEME)
     2318    BOOL shouldPaintNativeControls;
     2319    if (SUCCEEDED(m_preferences->shouldPaintNativeControls(&shouldPaintNativeControls)))
     2320        Settings::setShouldPaintNativeControls(shouldPaintNativeControls);
     2321#endif
     2322
    23172323    m_page = new Page(new WebChromeClient(this), new WebContextMenuClient(this), new WebEditorClient(this), new WebDragClient(this), new WebInspectorClient(this));
    23182324
Note: See TracChangeset for help on using the changeset viewer.