| 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 10 matching lines...) Expand all Loading... |
| 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 #include "core/page/Settings.h" | 27 #include "core/page/Settings.h" |
| 28 | 28 |
| 29 #include <limits> | 29 #include <limits> |
| 30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
| 31 #include "core/history/BackForwardController.h" | |
| 32 #include "core/history/HistoryItem.h" | |
| 33 #include "core/html/HTMLMediaElement.h" | |
| 34 #include "core/inspector/InspectorInstrumentation.h" | 31 #include "core/inspector/InspectorInstrumentation.h" |
| 35 #include "core/loader/cache/CachedResourceLoader.h" | 32 #include "core/loader/cache/CachedResourceLoader.h" |
| 36 #include "core/page/Chrome.h" | 33 #include "core/page/Chrome.h" |
| 37 #include "core/page/Frame.h" | 34 #include "core/page/Frame.h" |
| 38 #include "core/page/FrameTree.h" | 35 #include "core/page/FrameTree.h" |
| 39 #include "core/page/FrameView.h" | 36 #include "core/page/FrameView.h" |
| 40 #include "core/page/Page.h" | 37 #include "core/page/Page.h" |
| 41 #include "core/platform/network/ResourceHandle.h" | |
| 42 #include "core/rendering/TextAutosizer.h" | 38 #include "core/rendering/TextAutosizer.h" |
| 43 #include "modules/webdatabase/Database.h" | |
| 44 | 39 |
| 45 using namespace std; | 40 using namespace std; |
| 46 | 41 |
| 47 namespace WebCore { | 42 namespace WebCore { |
| 48 | 43 |
| 49 static void setImageLoadingSettings(Page* page) | 44 static void setImageLoadingSettings(Page* page) |
| 50 { | 45 { |
| 51 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree()->travers
eNext()) { | 46 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree()->travers
eNext()) { |
| 52 frame->document()->cachedResourceLoader()->setImagesEnabled(page->settin
gs()->areImagesEnabled()); | 47 frame->document()->cachedResourceLoader()->setImagesEnabled(page->settin
gs()->areImagesEnabled()); |
| 53 frame->document()->cachedResourceLoader()->setAutoLoadImages(page->setti
ngs()->loadsImagesAutomatically()); | 48 frame->document()->cachedResourceLoader()->setAutoLoadImages(page->setti
ngs()->loadsImagesAutomatically()); |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 m_openGLMultisamplingEnabled = flag; | 388 m_openGLMultisamplingEnabled = flag; |
| 394 m_page->multisamplingChanged(); | 389 m_page->multisamplingChanged(); |
| 395 } | 390 } |
| 396 | 391 |
| 397 bool Settings::openGLMultisamplingEnabled() | 392 bool Settings::openGLMultisamplingEnabled() |
| 398 { | 393 { |
| 399 return m_openGLMultisamplingEnabled; | 394 return m_openGLMultisamplingEnabled; |
| 400 } | 395 } |
| 401 | 396 |
| 402 } // namespace WebCore | 397 } // namespace WebCore |
| OLD | NEW |