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 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 ASSERT(m_frame->view() == this); | 982 ASSERT(m_frame->view() == this); |
983 ASSERT(m_frame->page()); | 983 ASSERT(m_frame->page()); |
984 | 984 |
985 ScriptForbiddenScope forbidScript; | 985 ScriptForbiddenScope forbidScript; |
986 | 986 |
987 if (isInPerformLayout() || shouldThrottleRendering() || | 987 if (isInPerformLayout() || shouldThrottleRendering() || |
988 !m_frame->document()->isActive()) | 988 !m_frame->document()->isActive()) |
989 return; | 989 return; |
990 | 990 |
991 TRACE_EVENT0("blink,benchmark", "FrameView::layout"); | 991 TRACE_EVENT0("blink,benchmark", "FrameView::layout"); |
992 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "Layout"); | |
993 | 992 |
994 if (m_autoSizeInfo) | 993 if (m_autoSizeInfo) |
995 m_autoSizeInfo->autoSizeIfNeeded(); | 994 m_autoSizeInfo->autoSizeIfNeeded(); |
996 | 995 |
997 m_hasPendingLayout = false; | 996 m_hasPendingLayout = false; |
998 DocumentLifecycle::Scope lifecycleScope(lifecycle(), | 997 DocumentLifecycle::Scope lifecycleScope(lifecycle(), |
999 DocumentLifecycle::LayoutClean); | 998 DocumentLifecycle::LayoutClean); |
1000 | 999 |
1001 TRACE_EVENT_BEGIN1("devtools.timeline", "Layout", "beginData", | 1000 TRACE_EVENT_BEGIN1("devtools.timeline", "Layout", "beginData", |
1002 InspectorLayoutEvent::beginData(this)); | 1001 InspectorLayoutEvent::beginData(this)); |
(...skipping 3554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4557 } | 4556 } |
4558 | 4557 |
4559 bool FrameView::canThrottleRendering() const { | 4558 bool FrameView::canThrottleRendering() const { |
4560 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) | 4559 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) |
4561 return false; | 4560 return false; |
4562 return m_subtreeThrottled || | 4561 return m_subtreeThrottled || |
4563 (m_hiddenForThrottling && m_crossOriginForThrottling); | 4562 (m_hiddenForThrottling && m_crossOriginForThrottling); |
4564 } | 4563 } |
4565 | 4564 |
4566 } // namespace blink | 4565 } // namespace blink |
OLD | NEW |