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 return view() && view()->shouldThrottleRenderingPipeline(); |
| 842 } |
| 843 |
| 844 bool LocalFrame::shouldThrottleStyleLayoutAndCompositingUpdates() const |
| 845 { |
| 846 return view() && view()->shouldThrottleStyleLayoutAndCompositingUpdates(); |
| 847 } |
| 848 |
839 inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host, FrameO
wner* owner) | 849 inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host, FrameO
wner* owner) |
840 : Frame(client, host, owner) | 850 : Frame(client, host, owner) |
841 , m_loader(this) | 851 , m_loader(this) |
842 , m_navigationScheduler(this) | 852 , m_navigationScheduler(this) |
843 , m_script(ScriptController::create(this)) | 853 , m_script(ScriptController::create(this)) |
844 , m_editor(Editor::create(*this)) | 854 , m_editor(Editor::create(*this)) |
845 , m_spellChecker(SpellChecker::create(*this)) | 855 , m_spellChecker(SpellChecker::create(*this)) |
846 , m_selection(FrameSelection::create(this)) | 856 , m_selection(FrameSelection::create(this)) |
847 , m_eventHandler(adoptPtrWillBeNoop(new EventHandler(this))) | 857 , m_eventHandler(adoptPtrWillBeNoop(new EventHandler(this))) |
848 , m_console(FrameConsole::create(*this)) | 858 , m_console(FrameConsole::create(*this)) |
849 , m_inputMethodController(InputMethodController::create(*this)) | 859 , m_inputMethodController(InputMethodController::create(*this)) |
850 , m_pageZoomFactor(parentPageZoomFactor(this)) | 860 , m_pageZoomFactor(parentPageZoomFactor(this)) |
851 , m_textZoomFactor(parentTextZoomFactor(this)) | 861 , m_textZoomFactor(parentTextZoomFactor(this)) |
852 , m_inViewSourceMode(false) | 862 , m_inViewSourceMode(false) |
853 { | 863 { |
854 if (isLocalRoot()) | 864 if (isLocalRoot()) |
855 m_instrumentingAgents = InstrumentingAgents::create(); | 865 m_instrumentingAgents = InstrumentingAgents::create(); |
856 else | 866 else |
857 m_instrumentingAgents = localFrameRoot()->m_instrumentingAgents; | 867 m_instrumentingAgents = localFrameRoot()->m_instrumentingAgents; |
858 } | 868 } |
859 | 869 |
860 DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame); | 870 DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame); |
861 | 871 |
862 } // namespace blink | 872 } // namespace blink |
OLD | NEW |