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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 | 349 |
350 // See comment in setLoadsImagesAutomatically. | 350 // See comment in setLoadsImagesAutomatically. |
351 m_setImageLoadingSettingsTimer.startOneShot(0); | 351 m_setImageLoadingSettingsTimer.startOneShot(0); |
352 } | 352 } |
353 | 353 |
354 void Settings::setPluginsEnabled(bool arePluginsEnabled) | 354 void Settings::setPluginsEnabled(bool arePluginsEnabled) |
355 { | 355 { |
356 m_arePluginsEnabled = arePluginsEnabled; | 356 m_arePluginsEnabled = arePluginsEnabled; |
357 } | 357 } |
358 | 358 |
359 void Settings::setUserStyleSheetLocation(const KURL& userStyleSheetLocation) | |
360 { | |
361 if (m_userStyleSheetLocation == userStyleSheetLocation) | |
362 return; | |
363 | |
364 m_userStyleSheetLocation = userStyleSheetLocation; | |
365 | |
366 m_page->userStyleSheetLocationChanged(); | |
367 } | |
368 | |
369 void Settings::setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled) | 359 void Settings::setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled) |
370 { | 360 { |
371 if (m_dnsPrefetchingEnabled == dnsPrefetchingEnabled) | 361 if (m_dnsPrefetchingEnabled == dnsPrefetchingEnabled) |
372 return; | 362 return; |
373 | 363 |
374 m_dnsPrefetchingEnabled = dnsPrefetchingEnabled; | 364 m_dnsPrefetchingEnabled = dnsPrefetchingEnabled; |
375 m_page->dnsPrefetchingStateChanged(); | 365 m_page->dnsPrefetchingStateChanged(); |
376 } | 366 } |
377 | 367 |
378 void Settings::setMockScrollbarsEnabled(bool flag) | 368 void Settings::setMockScrollbarsEnabled(bool flag) |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 if (m_page->mainFrame()) | 401 if (m_page->mainFrame()) |
412 m_page->mainFrame()->document()->updateViewportDescription(); | 402 m_page->mainFrame()->document()->updateViewportDescription(); |
413 } | 403 } |
414 | 404 |
415 void Settings::setViewportMetaEnabled(bool enabled) | 405 void Settings::setViewportMetaEnabled(bool enabled) |
416 { | 406 { |
417 m_viewportMetaEnabled = enabled; | 407 m_viewportMetaEnabled = enabled; |
418 } | 408 } |
419 | 409 |
420 } // namespace WebCore | 410 } // namespace WebCore |
OLD | NEW |