| 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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 #endif | 830 #endif |
| 831 | 831 |
| 832 String LocalFrame::localLayerTreeAsText(unsigned flags) const | 832 String LocalFrame::localLayerTreeAsText(unsigned flags) const |
| 833 { | 833 { |
| 834 if (!contentLayoutObject()) | 834 if (!contentLayoutObject()) |
| 835 return String(); | 835 return String(); |
| 836 | 836 |
| 837 return contentLayoutObject()->compositor()->layerTreeAsText(static_cast<Laye
rTreeFlags>(flags)); | 837 return contentLayoutObject()->compositor()->layerTreeAsText(static_cast<Laye
rTreeFlags>(flags)); |
| 838 } | 838 } |
| 839 | 839 |
| 840 bool LocalFrame::shouldThrottleRenderingPipeline() const |
| 841 { |
| 842 return view() && view()->shouldThrottleRenderingPipeline(); |
| 843 } |
| 844 |
| 845 bool LocalFrame::shouldThrottleStyleLayoutAndCompositingUpdates() const |
| 846 { |
| 847 return view() && view()->shouldThrottleStyleLayoutAndCompositingUpdates(); |
| 848 } |
| 849 |
| 840 inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host, FrameO
wner* owner) | 850 inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host, FrameO
wner* owner) |
| 841 : Frame(client, host, owner) | 851 : Frame(client, host, owner) |
| 842 , m_loader(this) | 852 , m_loader(this) |
| 843 , m_navigationScheduler(NavigationScheduler::create(this)) | 853 , m_navigationScheduler(NavigationScheduler::create(this)) |
| 844 , m_script(ScriptController::create(this)) | 854 , m_script(ScriptController::create(this)) |
| 845 , m_editor(Editor::create(*this)) | 855 , m_editor(Editor::create(*this)) |
| 846 , m_spellChecker(SpellChecker::create(*this)) | 856 , m_spellChecker(SpellChecker::create(*this)) |
| 847 , m_selection(FrameSelection::create(this)) | 857 , m_selection(FrameSelection::create(this)) |
| 848 , m_eventHandler(adoptPtrWillBeNoop(new EventHandler(this))) | 858 , m_eventHandler(adoptPtrWillBeNoop(new EventHandler(this))) |
| 849 , m_console(FrameConsole::create(*this)) | 859 , m_console(FrameConsole::create(*this)) |
| 850 , m_inputMethodController(InputMethodController::create(*this)) | 860 , m_inputMethodController(InputMethodController::create(*this)) |
| 851 , m_pageZoomFactor(parentPageZoomFactor(this)) | 861 , m_pageZoomFactor(parentPageZoomFactor(this)) |
| 852 , m_textZoomFactor(parentTextZoomFactor(this)) | 862 , m_textZoomFactor(parentTextZoomFactor(this)) |
| 853 , m_inViewSourceMode(false) | 863 , m_inViewSourceMode(false) |
| 854 { | 864 { |
| 855 if (isLocalRoot()) | 865 if (isLocalRoot()) |
| 856 m_instrumentingAgents = InstrumentingAgents::create(); | 866 m_instrumentingAgents = InstrumentingAgents::create(); |
| 857 else | 867 else |
| 858 m_instrumentingAgents = localFrameRoot()->m_instrumentingAgents; | 868 m_instrumentingAgents = localFrameRoot()->m_instrumentingAgents; |
| 859 } | 869 } |
| 860 | 870 |
| 861 DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame); | 871 DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame); |
| 862 | 872 |
| 863 } // namespace blink | 873 } // namespace blink |
| OLD | NEW |