| 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 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 mainFrame()->document()->fetcher()->setImagesEnabled(settings().imag
esEnabled()); | 232 mainFrame()->document()->fetcher()->setImagesEnabled(settings().imag
esEnabled()); |
| 233 mainFrame()->document()->fetcher()->setAutoLoadImages(settings().loa
dsImagesAutomatically()); | 233 mainFrame()->document()->fetcher()->setAutoLoadImages(settings().loa
dsImagesAutomatically()); |
| 234 } | 234 } |
| 235 break; | 235 break; |
| 236 case SettingsDelegate::FontFamilyChange: | 236 case SettingsDelegate::FontFamilyChange: |
| 237 if (mainFrame()->document()) | 237 if (mainFrame()->document()) |
| 238 mainFrame()->document()->styleEngine()->updateGenericFontFamilySetti
ngs(); | 238 mainFrame()->document()->styleEngine()->updateGenericFontFamilySetti
ngs(); |
| 239 setNeedsRecalcStyleInAllFrames(); | 239 setNeedsRecalcStyleInAllFrames(); |
| 240 break; | 240 break; |
| 241 case SettingsDelegate::AcceleratedCompositingChange: | 241 case SettingsDelegate::AcceleratedCompositingChange: |
| 242 updateAcceleratedCompositingSettings(); | 242 // FIXME(sky): Remove |
| 243 break; | 243 break; |
| 244 case SettingsDelegate::MediaQueryChange: | 244 case SettingsDelegate::MediaQueryChange: |
| 245 if (mainFrame()->document()) | 245 if (mainFrame()->document()) |
| 246 mainFrame()->document()->mediaQueryAffectingValueChanged(); | 246 mainFrame()->document()->mediaQueryAffectingValueChanged(); |
| 247 setNeedsRecalcStyleInAllFrames(); | 247 setNeedsRecalcStyleInAllFrames(); |
| 248 break; | 248 break; |
| 249 } | 249 } |
| 250 } | 250 } |
| 251 | 251 |
| 252 void Page::updateAcceleratedCompositingSettings() | |
| 253 { | |
| 254 if (FrameView* view = mainFrame()->view()) | |
| 255 view->updateAcceleratedCompositingSettings(); | |
| 256 } | |
| 257 | |
| 258 void Page::didCommitLoad(LocalFrame* frame) | 252 void Page::didCommitLoad(LocalFrame* frame) |
| 259 { | 253 { |
| 260 lifecycleNotifier().notifyDidCommitLoad(frame); | 254 lifecycleNotifier().notifyDidCommitLoad(frame); |
| 261 if (m_mainFrame == frame) { | 255 if (m_mainFrame == frame) { |
| 262 frame->console().clearMessages(); | 256 frame->console().clearMessages(); |
| 263 useCounter().didCommitLoad(); | 257 useCounter().didCommitLoad(); |
| 264 } | 258 } |
| 265 } | 259 } |
| 266 | 260 |
| 267 void Page::acceptLanguagesChanged() | 261 void Page::acceptLanguagesChanged() |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 , editorClient(0) | 293 , editorClient(0) |
| 300 , spellCheckerClient(0) | 294 , spellCheckerClient(0) |
| 301 { | 295 { |
| 302 } | 296 } |
| 303 | 297 |
| 304 Page::PageClients::~PageClients() | 298 Page::PageClients::~PageClients() |
| 305 { | 299 { |
| 306 } | 300 } |
| 307 | 301 |
| 308 } // namespace blink | 302 } // namespace blink |
| OLD | NEW |