| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 #endif | 130 #endif |
| 131 #if OS(WINDOWS) | 131 #if OS(WINDOWS) |
| 132 static const bool defaultSelectTrailingWhitespaceEnabled = true; | 132 static const bool defaultSelectTrailingWhitespaceEnabled = true; |
| 133 #else | 133 #else |
| 134 static const bool defaultSelectTrailingWhitespaceEnabled = false; | 134 static const bool defaultSelectTrailingWhitespaceEnabled = false; |
| 135 #endif | 135 #endif |
| 136 | 136 |
| 137 Settings::Settings(Page* page) | 137 Settings::Settings(Page* page) |
| 138 : m_page(0) | 138 : m_page(0) |
| 139 , m_mediaTypeOverride("screen") | 139 , m_mediaTypeOverride("screen") |
| 140 , m_storageBlockingPolicy(SecurityOrigin::AllowAllStorage) | |
| 141 , m_textAutosizingFontScaleFactor(1) | 140 , m_textAutosizingFontScaleFactor(1) |
| 142 #if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP | 141 #if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP |
| 143 , m_textAutosizingWindowSizeOverride(320, 480) | 142 , m_textAutosizingWindowSizeOverride(320, 480) |
| 144 , m_textAutosizingEnabled(true) | 143 , m_textAutosizingEnabled(true) |
| 145 #else | 144 #else |
| 146 , m_textAutosizingEnabled(false) | 145 , m_textAutosizingEnabled(false) |
| 147 #endif | 146 #endif |
| 148 SETTINGS_INITIALIZER_LIST | 147 SETTINGS_INITIALIZER_LIST |
| 149 , m_isJavaEnabled(false) | 148 , m_isJavaEnabled(false) |
| 150 , m_loadsImagesAutomatically(false) | 149 , m_loadsImagesAutomatically(false) |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 | 448 |
| 450 void Settings::setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled) | 449 void Settings::setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled) |
| 451 { | 450 { |
| 452 if (m_dnsPrefetchingEnabled == dnsPrefetchingEnabled) | 451 if (m_dnsPrefetchingEnabled == dnsPrefetchingEnabled) |
| 453 return; | 452 return; |
| 454 | 453 |
| 455 m_dnsPrefetchingEnabled = dnsPrefetchingEnabled; | 454 m_dnsPrefetchingEnabled = dnsPrefetchingEnabled; |
| 456 m_page->dnsPrefetchingStateChanged(); | 455 m_page->dnsPrefetchingStateChanged(); |
| 457 } | 456 } |
| 458 | 457 |
| 459 void Settings::setStorageBlockingPolicy(SecurityOrigin::StorageBlockingPolicy en
abled) | |
| 460 { | |
| 461 if (m_storageBlockingPolicy == enabled) | |
| 462 return; | |
| 463 | |
| 464 m_storageBlockingPolicy = enabled; | |
| 465 m_page->storageBlockingStateChanged(); | |
| 466 } | |
| 467 | |
| 468 void Settings::setTiledBackingStoreEnabled(bool enabled) | 458 void Settings::setTiledBackingStoreEnabled(bool enabled) |
| 469 { | 459 { |
| 470 m_tiledBackingStoreEnabled = enabled; | 460 m_tiledBackingStoreEnabled = enabled; |
| 471 } | 461 } |
| 472 | 462 |
| 473 void Settings::setMockScrollbarsEnabled(bool flag) | 463 void Settings::setMockScrollbarsEnabled(bool flag) |
| 474 { | 464 { |
| 475 gMockScrollbarsEnabled = flag; | 465 gMockScrollbarsEnabled = flag; |
| 476 } | 466 } |
| 477 | 467 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 494 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag) | 484 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag) |
| 495 { | 485 { |
| 496 if (m_hiddenPageDOMTimerThrottlingEnabled == flag) | 486 if (m_hiddenPageDOMTimerThrottlingEnabled == flag) |
| 497 return; | 487 return; |
| 498 m_hiddenPageDOMTimerThrottlingEnabled = flag; | 488 m_hiddenPageDOMTimerThrottlingEnabled = flag; |
| 499 m_page->hiddenPageDOMTimerThrottlingStateChanged(); | 489 m_page->hiddenPageDOMTimerThrottlingStateChanged(); |
| 500 } | 490 } |
| 501 #endif | 491 #endif |
| 502 | 492 |
| 503 } // namespace WebCore | 493 } // namespace WebCore |
| OLD | NEW |