Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: sky/engine/core/page/Page.cpp

Issue 813493003: Only the main document should have a StyleEngine. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/html/HTMLStyleElement.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled() ); 216 (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled() );
217 break; 217 break;
218 } 218 }
219 case SettingsDelegate::ImageLoadingChange: 219 case SettingsDelegate::ImageLoadingChange:
220 if (mainFrame() && mainFrame()->document()) { 220 if (mainFrame() && mainFrame()->document()) {
221 mainFrame()->document()->fetcher()->setImagesEnabled(settings().imag esEnabled()); 221 mainFrame()->document()->fetcher()->setImagesEnabled(settings().imag esEnabled());
222 mainFrame()->document()->fetcher()->setAutoLoadImages(settings().loa dsImagesAutomatically()); 222 mainFrame()->document()->fetcher()->setAutoLoadImages(settings().loa dsImagesAutomatically());
223 } 223 }
224 break; 224 break;
225 case SettingsDelegate::FontFamilyChange: 225 case SettingsDelegate::FontFamilyChange:
226 if (mainFrame()->document()) 226 if (mainFrame()->document() && mainFrame()->document()->isActive())
227 mainFrame()->document()->styleEngine()->updateGenericFontFamilySetti ngs(); 227 mainFrame()->document()->styleEngine()->updateGenericFontFamilySetti ngs();
228 setNeedsRecalcStyleInAllFrames(); 228 setNeedsRecalcStyleInAllFrames();
229 break; 229 break;
230 case SettingsDelegate::AcceleratedCompositingChange: 230 case SettingsDelegate::AcceleratedCompositingChange:
231 // FIXME(sky): Remove 231 // FIXME(sky): Remove
232 break; 232 break;
233 case SettingsDelegate::MediaQueryChange: 233 case SettingsDelegate::MediaQueryChange:
234 if (mainFrame()->document()) 234 if (mainFrame()->document())
235 mainFrame()->document()->mediaQueryAffectingValueChanged(); 235 mainFrame()->document()->mediaQueryAffectingValueChanged();
236 setNeedsRecalcStyleInAllFrames(); 236 setNeedsRecalcStyleInAllFrames();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 , editorClient(0) 282 , editorClient(0)
283 , spellCheckerClient(0) 283 , spellCheckerClient(0)
284 { 284 {
285 } 285 }
286 286
287 Page::PageClients::~PageClients() 287 Page::PageClients::~PageClients()
288 { 288 {
289 } 289 }
290 290
291 } // namespace blink 291 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/html/HTMLStyleElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698