| 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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 return TracedValue::create(); | 850 return TracedValue::create(); |
| 851 std::unique_ptr<TracedValue> value = m_analyzer->toTracedValue(); | 851 std::unique_ptr<TracedValue> value = m_analyzer->toTracedValue(); |
| 852 value->setString("host", layoutViewItem().document().location()->host()); | 852 value->setString("host", layoutViewItem().document().location()->host()); |
| 853 value->setString("frame", String::format("0x%" PRIxPTR, reinterpret_cast<uin
tptr_t>(m_frame.get()))); | 853 value->setString("frame", String::format("0x%" PRIxPTR, reinterpret_cast<uin
tptr_t>(m_frame.get()))); |
| 854 value->setInteger("contentsHeightAfterLayout", layoutViewItem().documentRect
().height()); | 854 value->setInteger("contentsHeightAfterLayout", layoutViewItem().documentRect
().height()); |
| 855 value->setInteger("visibleHeight", visibleHeight()); | 855 value->setInteger("visibleHeight", visibleHeight()); |
| 856 value->setInteger("approximateBlankCharacterCount", FontFaceSet::approximate
BlankCharacterCount(*m_frame->document())); | 856 value->setInteger("approximateBlankCharacterCount", FontFaceSet::approximate
BlankCharacterCount(*m_frame->document())); |
| 857 return value; | 857 return value; |
| 858 } | 858 } |
| 859 | 859 |
| 860 #define PERFORM_LAYOUT_TRACE_CATEGORIES "blink,benchmark," TRACE_DISABLED_BY_DEF
AULT("blink.debug.layout") | 860 #define PERFORM_LAYOUT_TRACE_CATEGORIES "blink,benchmark,rail," TRACE_DISABLED_B
Y_DEFAULT("blink.debug.layout") |
| 861 | 861 |
| 862 void FrameView::performLayout(bool inSubtreeLayout) | 862 void FrameView::performLayout(bool inSubtreeLayout) |
| 863 { | 863 { |
| 864 ASSERT(inSubtreeLayout || m_layoutSubtreeRootList.isEmpty()); | 864 ASSERT(inSubtreeLayout || m_layoutSubtreeRootList.isEmpty()); |
| 865 | 865 |
| 866 TRACE_EVENT_BEGIN1(PERFORM_LAYOUT_TRACE_CATEGORIES, "FrameView::performLayou
t", | 866 TRACE_EVENT_BEGIN1(PERFORM_LAYOUT_TRACE_CATEGORIES, "FrameView::performLayou
t", |
| 867 "contentsHeightBeforeLayout", layoutViewItem().documentRect().height()); | 867 "contentsHeightBeforeLayout", layoutViewItem().documentRect().height()); |
| 868 prepareLayoutAnalyzer(); | 868 prepareLayoutAnalyzer(); |
| 869 | 869 |
| 870 ScriptForbiddenScope forbidScript; | 870 ScriptForbiddenScope forbidScript; |
| (...skipping 3377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4248 } | 4248 } |
| 4249 | 4249 |
| 4250 bool FrameView::canThrottleRendering() const | 4250 bool FrameView::canThrottleRendering() const |
| 4251 { | 4251 { |
| 4252 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) | 4252 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) |
| 4253 return false; | 4253 return false; |
| 4254 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot
tling); | 4254 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot
tling); |
| 4255 } | 4255 } |
| 4256 | 4256 |
| 4257 } // namespace blink | 4257 } // namespace blink |
| OLD | NEW |