| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 , m_textAutosizingFontScaleFactor(1) | 146 , m_textAutosizingFontScaleFactor(1) |
| 147 #if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP | 147 #if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP |
| 148 , m_textAutosizingWindowSizeOverride(320, 480) | 148 , m_textAutosizingWindowSizeOverride(320, 480) |
| 149 , m_textAutosizingEnabled(true) | 149 , m_textAutosizingEnabled(true) |
| 150 #else | 150 #else |
| 151 , m_textAutosizingEnabled(false) | 151 , m_textAutosizingEnabled(false) |
| 152 #endif | 152 #endif |
| 153 SETTINGS_INITIALIZER_LIST | 153 SETTINGS_INITIALIZER_LIST |
| 154 , m_isJavaEnabled(false) | 154 , m_isJavaEnabled(false) |
| 155 , m_loadsImagesAutomatically(false) | 155 , m_loadsImagesAutomatically(false) |
| 156 , m_privateBrowsingEnabled(false) | |
| 157 , m_areImagesEnabled(true) | 156 , m_areImagesEnabled(true) |
| 158 , m_arePluginsEnabled(false) | 157 , m_arePluginsEnabled(false) |
| 159 , m_isScriptEnabled(false) | 158 , m_isScriptEnabled(false) |
| 160 , m_usesPageCache(false) | 159 , m_usesPageCache(false) |
| 161 , m_fontRenderingMode(0) | 160 , m_fontRenderingMode(0) |
| 162 , m_isCSSCustomFilterEnabled(false) | 161 , m_isCSSCustomFilterEnabled(false) |
| 163 , m_cssStickyPositionEnabled(true) | 162 , m_cssStickyPositionEnabled(true) |
| 164 , m_cssVariablesEnabled(false) | 163 , m_cssVariablesEnabled(false) |
| 165 , m_tiledBackingStoreEnabled(false) | 164 , m_tiledBackingStoreEnabled(false) |
| 166 , m_dnsPrefetchingEnabled(false) | 165 , m_dnsPrefetchingEnabled(false) |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 365 |
| 367 // See comment in setLoadsImagesAutomatically. | 366 // See comment in setLoadsImagesAutomatically. |
| 368 m_setImageLoadingSettingsTimer.startOneShot(0); | 367 m_setImageLoadingSettingsTimer.startOneShot(0); |
| 369 } | 368 } |
| 370 | 369 |
| 371 void Settings::setPluginsEnabled(bool arePluginsEnabled) | 370 void Settings::setPluginsEnabled(bool arePluginsEnabled) |
| 372 { | 371 { |
| 373 m_arePluginsEnabled = arePluginsEnabled; | 372 m_arePluginsEnabled = arePluginsEnabled; |
| 374 } | 373 } |
| 375 | 374 |
| 376 void Settings::setPrivateBrowsingEnabled(bool privateBrowsingEnabled) | |
| 377 { | |
| 378 if (m_privateBrowsingEnabled == privateBrowsingEnabled) | |
| 379 return; | |
| 380 | |
| 381 m_privateBrowsingEnabled = privateBrowsingEnabled; | |
| 382 m_page->privateBrowsingStateChanged(); | |
| 383 } | |
| 384 | |
| 385 void Settings::setUserStyleSheetLocation(const KURL& userStyleSheetLocation) | 375 void Settings::setUserStyleSheetLocation(const KURL& userStyleSheetLocation) |
| 386 { | 376 { |
| 387 if (m_userStyleSheetLocation == userStyleSheetLocation) | 377 if (m_userStyleSheetLocation == userStyleSheetLocation) |
| 388 return; | 378 return; |
| 389 | 379 |
| 390 m_userStyleSheetLocation = userStyleSheetLocation; | 380 m_userStyleSheetLocation = userStyleSheetLocation; |
| 391 | 381 |
| 392 m_page->userStyleSheetLocationChanged(); | 382 m_page->userStyleSheetLocationChanged(); |
| 393 } | 383 } |
| 394 | 384 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag) | 516 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag) |
| 527 { | 517 { |
| 528 if (m_hiddenPageDOMTimerThrottlingEnabled == flag) | 518 if (m_hiddenPageDOMTimerThrottlingEnabled == flag) |
| 529 return; | 519 return; |
| 530 m_hiddenPageDOMTimerThrottlingEnabled = flag; | 520 m_hiddenPageDOMTimerThrottlingEnabled = flag; |
| 531 m_page->hiddenPageDOMTimerThrottlingStateChanged(); | 521 m_page->hiddenPageDOMTimerThrottlingStateChanged(); |
| 532 } | 522 } |
| 533 #endif | 523 #endif |
| 534 | 524 |
| 535 } // namespace WebCore | 525 } // namespace WebCore |
| OLD | NEW |