| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserv
ed. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // A Frame may not have been created yet, so we initialize the AtomicString | 150 // A Frame may not have been created yet, so we initialize the AtomicString |
| 151 // hash before trying to use it. | 151 // hash before trying to use it. |
| 152 AtomicString::init(); | 152 AtomicString::init(); |
| 153 initializeDefaultFontFamilies(); | 153 initializeDefaultFontFamilies(); |
| 154 m_page = page; // Page is not yet fully initialized wen constructing Setting
s, so keeping m_page null over initializeDefaultFontFamilies() call. | 154 m_page = page; // Page is not yet fully initialized wen constructing Setting
s, so keeping m_page null over initializeDefaultFontFamilies() call. |
| 155 } | 155 } |
| 156 | 156 |
| 157 PassOwnPtr<Settings> Settings::create(Page* page) | 157 PassOwnPtr<Settings> Settings::create(Page* page) |
| 158 { | 158 { |
| 159 return adoptPtr(new Settings(page)); | 159 return adoptPtr(new Settings(page)); |
| 160 } | 160 } |
| 161 |
| 162 void Settings::settingsChanged() const { |
| 163 m_page->settingsChanged(); |
| 164 } |
| 161 | 165 |
| 162 SETTINGS_SETTER_BODIES | 166 SETTINGS_SETTER_BODIES |
| 163 | 167 |
| 164 void Settings::initializeDefaultFontFamilies() | 168 void Settings::initializeDefaultFontFamilies() |
| 165 { | 169 { |
| 166 // Other platforms can set up fonts from a client, but on Mac, we want it in
WebCore to share code between WebKit1 and WebKit2. | 170 // Other platforms can set up fonts from a client, but on Mac, we want it in
WebCore to share code between WebKit1 and WebKit2. |
| 167 } | 171 } |
| 168 | 172 |
| 169 const AtomicString& Settings::standardFontFamily(UScriptCode script) const | 173 const AtomicString& Settings::standardFontFamily(UScriptCode script) const |
| 170 { | 174 { |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 { | 383 { |
| 380 gUsesOverlayScrollbars = flag; | 384 gUsesOverlayScrollbars = flag; |
| 381 } | 385 } |
| 382 | 386 |
| 383 bool Settings::usesOverlayScrollbars() | 387 bool Settings::usesOverlayScrollbars() |
| 384 { | 388 { |
| 385 return gUsesOverlayScrollbars; | 389 return gUsesOverlayScrollbars; |
| 386 } | 390 } |
| 387 | 391 |
| 388 } // namespace WebCore | 392 } // namespace WebCore |
| OLD | NEW |