| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. |
| 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
| 13 * | 13 * |
| 14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
| 15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
| 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
| 18 */ | 18 */ |
| 19 | 19 |
| 20 #include "sky/engine/core/page/Page.h" | 20 #include "sky/engine/core/page/Page.h" |
| 21 | 21 |
| 22 #include "sky/engine/core/dom/ClientRectList.h" | 22 #include "sky/engine/core/dom/ClientRectList.h" |
| 23 #include "sky/engine/core/dom/Document.h" | 23 #include "sky/engine/core/dom/Document.h" |
| 24 #include "sky/engine/core/dom/DocumentMarkerController.h" | 24 #include "sky/engine/core/dom/DocumentMarkerController.h" |
| 25 #include "sky/engine/core/dom/StyleEngine.h" | 25 #include "sky/engine/core/dom/StyleEngine.h" |
| 26 #include "sky/engine/core/editing/Caret.h" | 26 #include "sky/engine/core/editing/Caret.h" |
| 27 #include "sky/engine/core/editing/UndoStack.h" | 27 #include "sky/engine/core/editing/UndoStack.h" |
| 28 #include "sky/engine/core/events/Event.h" | 28 #include "sky/engine/core/events/Event.h" |
| 29 #include "sky/engine/core/fetch/ResourceFetcher.h" | |
| 30 #include "sky/engine/core/frame/DOMTimer.h" | 29 #include "sky/engine/core/frame/DOMTimer.h" |
| 31 #include "sky/engine/core/frame/FrameConsole.h" | 30 #include "sky/engine/core/frame/FrameConsole.h" |
| 32 #include "sky/engine/core/frame/FrameHost.h" | 31 #include "sky/engine/core/frame/FrameHost.h" |
| 33 #include "sky/engine/core/frame/FrameView.h" | 32 #include "sky/engine/core/frame/FrameView.h" |
| 34 #include "sky/engine/core/frame/LocalDOMWindow.h" | 33 #include "sky/engine/core/frame/LocalDOMWindow.h" |
| 35 #include "sky/engine/core/frame/LocalFrame.h" | 34 #include "sky/engine/core/frame/LocalFrame.h" |
| 36 #include "sky/engine/core/frame/Settings.h" | 35 #include "sky/engine/core/frame/Settings.h" |
| 37 #include "sky/engine/core/page/ChromeClient.h" | 36 #include "sky/engine/core/page/ChromeClient.h" |
| 38 #include "sky/engine/core/page/FocusController.h" | 37 #include "sky/engine/core/page/FocusController.h" |
| 39 #include "sky/engine/core/page/PageLifecycleNotifier.h" | 38 #include "sky/engine/core/page/PageLifecycleNotifier.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 setNeedsRecalcStyleInAllFrames(); | 203 setNeedsRecalcStyleInAllFrames(); |
| 205 } | 204 } |
| 206 break; | 205 break; |
| 207 case SettingsDelegate::MultisamplingChange: { | 206 case SettingsDelegate::MultisamplingChange: { |
| 208 HashSet<RawPtr<MultisamplingChangedObserver> >::iterator stop = m_multis
amplingChangedObservers.end(); | 207 HashSet<RawPtr<MultisamplingChangedObserver> >::iterator stop = m_multis
amplingChangedObservers.end(); |
| 209 for (HashSet<RawPtr<MultisamplingChangedObserver> >::iterator it = m_mul
tisamplingChangedObservers.begin(); it != stop; ++it) | 208 for (HashSet<RawPtr<MultisamplingChangedObserver> >::iterator it = m_mul
tisamplingChangedObservers.begin(); it != stop; ++it) |
| 210 (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled()
); | 209 (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled()
); |
| 211 break; | 210 break; |
| 212 } | 211 } |
| 213 case SettingsDelegate::ImageLoadingChange: | 212 case SettingsDelegate::ImageLoadingChange: |
| 214 if (mainFrame() && mainFrame()->document()) { | |
| 215 mainFrame()->document()->fetcher()->setImagesEnabled(settings().imag
esEnabled()); | |
| 216 mainFrame()->document()->fetcher()->setAutoLoadImages(settings().loa
dsImagesAutomatically()); | |
| 217 } | |
| 218 break; | 213 break; |
| 219 case SettingsDelegate::FontFamilyChange: | 214 case SettingsDelegate::FontFamilyChange: |
| 220 if (mainFrame()->document() && mainFrame()->document()->isActive()) | 215 if (mainFrame()->document() && mainFrame()->document()->isActive()) |
| 221 mainFrame()->document()->styleEngine()->updateGenericFontFamilySetti
ngs(); | 216 mainFrame()->document()->styleEngine()->updateGenericFontFamilySetti
ngs(); |
| 222 setNeedsRecalcStyleInAllFrames(); | 217 setNeedsRecalcStyleInAllFrames(); |
| 223 break; | 218 break; |
| 224 case SettingsDelegate::MediaQueryChange: | 219 case SettingsDelegate::MediaQueryChange: |
| 225 if (mainFrame()->document()) | 220 if (mainFrame()->document()) |
| 226 mainFrame()->document()->mediaQueryAffectingValueChanged(); | 221 mainFrame()->document()->mediaQueryAffectingValueChanged(); |
| 227 setNeedsRecalcStyleInAllFrames(); | 222 setNeedsRecalcStyleInAllFrames(); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 , editorClient(0) | 328 , editorClient(0) |
| 334 , spellCheckerClient(0) | 329 , spellCheckerClient(0) |
| 335 { | 330 { |
| 336 } | 331 } |
| 337 | 332 |
| 338 Page::PageClients::~PageClients() | 333 Page::PageClients::~PageClients() |
| 339 { | 334 { |
| 340 } | 335 } |
| 341 | 336 |
| 342 } // namespace blink | 337 } // namespace blink |
| OLD | NEW |