Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
| 6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
| 7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
| 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. |
| 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
| 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 829 #endif | 829 #endif |
| 830 | 830 |
| 831 String LocalFrame::localLayerTreeAsText(unsigned flags) const | 831 String LocalFrame::localLayerTreeAsText(unsigned flags) const |
| 832 { | 832 { |
| 833 if (!contentLayoutObject()) | 833 if (!contentLayoutObject()) |
| 834 return String(); | 834 return String(); |
| 835 | 835 |
| 836 return contentLayoutObject()->compositor()->layerTreeAsText(static_cast<Laye rTreeFlags>(flags)); | 836 return contentLayoutObject()->compositor()->layerTreeAsText(static_cast<Laye rTreeFlags>(flags)); |
| 837 } | 837 } |
| 838 | 838 |
| 839 bool LocalFrame::shouldThrottleRenderingPipeline() const | |
| 840 { | |
| 841 if (view()) | |
| 842 return view()->shouldThrottleRenderingPipeline(); | |
|
esprehn
2015/09/02 21:10:37
return view() && view()->...;
Sami
2015/09/03 17:23:20
Done.
| |
| 843 return false; | |
| 844 } | |
| 845 | |
| 846 bool LocalFrame::shouldThrottleStyleLayoutAndCompositingUpdates() const | |
| 847 { | |
| 848 if (view()) | |
| 849 return view()->shouldThrottleStyleLayoutAndCompositingUpdates(); | |
|
esprehn
2015/09/02 21:10:37
ditto
Sami
2015/09/03 17:23:20
Done.
| |
| 850 return false; | |
| 851 } | |
| 852 | |
| 839 inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host, FrameO wner* owner) | 853 inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host, FrameO wner* owner) |
| 840 : Frame(client, host, owner) | 854 : Frame(client, host, owner) |
| 841 , m_loader(this) | 855 , m_loader(this) |
| 842 , m_navigationScheduler(this) | 856 , m_navigationScheduler(this) |
| 843 , m_script(ScriptController::create(this)) | 857 , m_script(ScriptController::create(this)) |
| 844 , m_editor(Editor::create(*this)) | 858 , m_editor(Editor::create(*this)) |
| 845 , m_spellChecker(SpellChecker::create(*this)) | 859 , m_spellChecker(SpellChecker::create(*this)) |
| 846 , m_selection(FrameSelection::create(this)) | 860 , m_selection(FrameSelection::create(this)) |
| 847 , m_eventHandler(adoptPtrWillBeNoop(new EventHandler(this))) | 861 , m_eventHandler(adoptPtrWillBeNoop(new EventHandler(this))) |
| 848 , m_console(FrameConsole::create(*this)) | 862 , m_console(FrameConsole::create(*this)) |
| 849 , m_inputMethodController(InputMethodController::create(*this)) | 863 , m_inputMethodController(InputMethodController::create(*this)) |
| 850 , m_pageZoomFactor(parentPageZoomFactor(this)) | 864 , m_pageZoomFactor(parentPageZoomFactor(this)) |
| 851 , m_textZoomFactor(parentTextZoomFactor(this)) | 865 , m_textZoomFactor(parentTextZoomFactor(this)) |
| 852 , m_inViewSourceMode(false) | 866 , m_inViewSourceMode(false) |
| 853 { | 867 { |
| 854 if (isLocalRoot()) | 868 if (isLocalRoot()) |
| 855 m_instrumentingAgents = InstrumentingAgents::create(); | 869 m_instrumentingAgents = InstrumentingAgents::create(); |
| 856 else | 870 else |
| 857 m_instrumentingAgents = localFrameRoot()->m_instrumentingAgents; | 871 m_instrumentingAgents = localFrameRoot()->m_instrumentingAgents; |
| 858 } | 872 } |
| 859 | 873 |
| 860 DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame); | 874 DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame); |
| 861 | 875 |
| 862 } // namespace blink | 876 } // namespace blink |
| OLD | NEW |