| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 #endif | 126 #endif |
| 127 #if OS(WINDOWS) | 127 #if OS(WINDOWS) |
| 128 static const bool defaultSelectTrailingWhitespaceEnabled = true; | 128 static const bool defaultSelectTrailingWhitespaceEnabled = true; |
| 129 #else | 129 #else |
| 130 static const bool defaultSelectTrailingWhitespaceEnabled = false; | 130 static const bool defaultSelectTrailingWhitespaceEnabled = false; |
| 131 #endif | 131 #endif |
| 132 | 132 |
| 133 Settings::Settings(Page* page) | 133 Settings::Settings(Page* page) |
| 134 : m_page(0) | 134 : m_page(0) |
| 135 , m_mediaTypeOverride("screen") | 135 , m_mediaTypeOverride("screen") |
| 136 , m_storageBlockingPolicy(SecurityOrigin::AllowAllStorage) | |
| 137 , m_textAutosizingFontScaleFactor(1) | 136 , m_textAutosizingFontScaleFactor(1) |
| 138 #if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP | 137 #if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP |
| 139 , m_textAutosizingWindowSizeOverride(320, 480) | 138 , m_textAutosizingWindowSizeOverride(320, 480) |
| 140 , m_textAutosizingEnabled(true) | 139 , m_textAutosizingEnabled(true) |
| 141 #else | 140 #else |
| 142 , m_textAutosizingEnabled(false) | 141 , m_textAutosizingEnabled(false) |
| 143 #endif | 142 #endif |
| 144 SETTINGS_INITIALIZER_LIST | 143 SETTINGS_INITIALIZER_LIST |
| 145 , m_isJavaEnabled(false) | 144 , m_isJavaEnabled(false) |
| 146 , m_loadsImagesAutomatically(false) | 145 , m_loadsImagesAutomatically(false) |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 436 |
| 438 void Settings::setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled) | 437 void Settings::setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled) |
| 439 { | 438 { |
| 440 if (m_dnsPrefetchingEnabled == dnsPrefetchingEnabled) | 439 if (m_dnsPrefetchingEnabled == dnsPrefetchingEnabled) |
| 441 return; | 440 return; |
| 442 | 441 |
| 443 m_dnsPrefetchingEnabled = dnsPrefetchingEnabled; | 442 m_dnsPrefetchingEnabled = dnsPrefetchingEnabled; |
| 444 m_page->dnsPrefetchingStateChanged(); | 443 m_page->dnsPrefetchingStateChanged(); |
| 445 } | 444 } |
| 446 | 445 |
| 447 void Settings::setStorageBlockingPolicy(SecurityOrigin::StorageBlockingPolicy en
abled) | |
| 448 { | |
| 449 if (m_storageBlockingPolicy == enabled) | |
| 450 return; | |
| 451 | |
| 452 m_storageBlockingPolicy = enabled; | |
| 453 m_page->storageBlockingStateChanged(); | |
| 454 } | |
| 455 | |
| 456 void Settings::setMockScrollbarsEnabled(bool flag) | 446 void Settings::setMockScrollbarsEnabled(bool flag) |
| 457 { | 447 { |
| 458 gMockScrollbarsEnabled = flag; | 448 gMockScrollbarsEnabled = flag; |
| 459 } | 449 } |
| 460 | 450 |
| 461 bool Settings::mockScrollbarsEnabled() | 451 bool Settings::mockScrollbarsEnabled() |
| 462 { | 452 { |
| 463 return gMockScrollbarsEnabled; | 453 return gMockScrollbarsEnabled; |
| 464 } | 454 } |
| 465 | 455 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 477 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag) | 467 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag) |
| 478 { | 468 { |
| 479 if (m_hiddenPageDOMTimerThrottlingEnabled == flag) | 469 if (m_hiddenPageDOMTimerThrottlingEnabled == flag) |
| 480 return; | 470 return; |
| 481 m_hiddenPageDOMTimerThrottlingEnabled = flag; | 471 m_hiddenPageDOMTimerThrottlingEnabled = flag; |
| 482 m_page->hiddenPageDOMTimerThrottlingStateChanged(); | 472 m_page->hiddenPageDOMTimerThrottlingStateChanged(); |
| 483 } | 473 } |
| 484 #endif | 474 #endif |
| 485 | 475 |
| 486 } // namespace WebCore | 476 } // namespace WebCore |
| OLD | NEW |