| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include <limits> | 29 #include <limits> |
| 30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
| 31 #include "core/fetch/ResourceFetcher.h" | 31 #include "core/fetch/ResourceFetcher.h" |
| 32 #include "core/inspector/InspectorInstrumentation.h" | 32 #include "core/inspector/InspectorInstrumentation.h" |
| 33 #include "core/page/Chrome.h" | 33 #include "core/page/Chrome.h" |
| 34 #include "core/frame/Frame.h" | 34 #include "core/frame/Frame.h" |
| 35 #include "core/page/FrameTree.h" | 35 #include "core/page/FrameTree.h" |
| 36 #include "core/frame/FrameView.h" | 36 #include "core/frame/FrameView.h" |
| 37 #include "core/page/Page.h" | 37 #include "core/page/Page.h" |
| 38 #include "core/platform/ScrollbarTheme.h" | |
| 39 #include "core/rendering/TextAutosizer.h" | 38 #include "core/rendering/TextAutosizer.h" |
| 39 #include "platform/scroll/ScrollbarTheme.h" |
| 40 | 40 |
| 41 using namespace std; | 41 using namespace std; |
| 42 | 42 |
| 43 namespace WebCore { | 43 namespace WebCore { |
| 44 | 44 |
| 45 static void setImageLoadingSettings(Page* page) | 45 static void setImageLoadingSettings(Page* page) |
| 46 { | 46 { |
| 47 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().traverse
Next()) { | 47 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().traverse
Next()) { |
| 48 frame->document()->fetcher()->setImagesEnabled(page->settings().areImage
sEnabled()); | 48 frame->document()->fetcher()->setImagesEnabled(page->settings().areImage
sEnabled()); |
| 49 frame->document()->fetcher()->setAutoLoadImages(page->settings().loadsIm
agesAutomatically()); | 49 frame->document()->fetcher()->setAutoLoadImages(page->settings().loadsIm
agesAutomatically()); |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 if (m_page->mainFrame()) | 294 if (m_page->mainFrame()) |
| 295 m_page->mainFrame()->document()->updateViewportDescription(); | 295 m_page->mainFrame()->document()->updateViewportDescription(); |
| 296 } | 296 } |
| 297 | 297 |
| 298 void Settings::setViewportMetaEnabled(bool enabled) | 298 void Settings::setViewportMetaEnabled(bool enabled) |
| 299 { | 299 { |
| 300 m_viewportMetaEnabled = enabled; | 300 m_viewportMetaEnabled = enabled; |
| 301 } | 301 } |
| 302 | 302 |
| 303 } // namespace WebCore | 303 } // namespace WebCore |
| OLD | NEW |