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

Side by Side Diff: Source/core/page/Page.cpp

Issue 14840015: Lose/restore WebGL contexts if multisampling blackist status changes at runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Forgot to remove DrawingBuffer change Created 7 years, 7 months 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
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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 info.ignoreMember(m_plugInClient); 819 info.ignoreMember(m_plugInClient);
820 info.ignoreMember(m_validationMessageClient); 820 info.ignoreMember(m_validationMessageClient);
821 } 821 }
822 822
823 void Page::captionPreferencesChanged() 823 void Page::captionPreferencesChanged()
824 { 824 {
825 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( )) 825 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( ))
826 frame->document()->captionPreferencesChanged(); 826 frame->document()->captionPreferencesChanged();
827 } 827 }
828 828
829 Page::MultisamplingChangedObserver::MultisamplingChangedObserver(Page* page)
830 : m_page(page)
831 {
832 m_page->m_multisamplingChangedObservers.add(this);
833 }
834
835 Page::MultisamplingChangedObserver::~MultisamplingChangedObserver()
836 {
837 m_page->m_multisamplingChangedObservers.remove(this);
838 }
Ken Russell (switch to Gerrit) 2013/05/08 02:17:02 It's confusing to me that the base class Multisamp
839
840 void Page::multisamplingChanged()
841 {
842 HashSet<MultisamplingChangedObserver*>::iterator stop = m_multisamplingChang edObservers.end();
843 for (HashSet<MultisamplingChangedObserver*>::iterator it = m_multisamplingCh angedObservers.begin(); it != stop; ++it)
844 (*it)->multisamplingChanged(m_settings->openGLMultisamplingEnabled());
abarth-chromium 2013/05/07 22:10:59 Can this call end up executing JavaScript or destr
Ken Russell (switch to Gerrit) 2013/05/08 02:17:02 Actually, it's guaranteed that it doesn't. It star
845 }
846
829 Page::PageClients::PageClients() 847 Page::PageClients::PageClients()
830 : alternativeTextClient(0) 848 : alternativeTextClient(0)
831 , chromeClient(0) 849 , chromeClient(0)
832 , contextMenuClient(0) 850 , contextMenuClient(0)
833 , editorClient(0) 851 , editorClient(0)
834 , dragClient(0) 852 , dragClient(0)
835 , inspectorClient(0) 853 , inspectorClient(0)
836 , plugInClient(0) 854 , plugInClient(0)
837 { 855 {
838 } 856 }
839 857
840 Page::PageClients::~PageClients() 858 Page::PageClients::~PageClients()
841 { 859 {
842 } 860 }
843 861
844 } // namespace WebCore 862 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698