Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: Source/core/frame/FrameView.cpp

Issue 1113353003: Remove LayoutAnalyzer UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/layout/LayoutAnalyzer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 container->setMayNeedPaintInvalidation(); 871 container->setMayNeedPaintInvalidation();
872 } 872 }
873 } else { 873 } else {
874 layoutFromRootObject(*layoutView()); 874 layoutFromRootObject(*layoutView());
875 } 875 }
876 876
877 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->updateAllIma geResourcePriorities(); 877 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->updateAllIma geResourcePriorities();
878 878
879 lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout); 879 lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout);
880 880
881 if (m_analyzer)
882 m_analyzer->recordCounters();
883 TRACE_EVENT_END1(PERFORM_LAYOUT_TRACE_CATEGORIES, "FrameView::performLayout" , 881 TRACE_EVENT_END1(PERFORM_LAYOUT_TRACE_CATEGORIES, "FrameView::performLayout" ,
884 "counters", analyzerCounters()); 882 "counters", analyzerCounters());
885 } 883 }
886 884
887 void FrameView::scheduleOrPerformPostLayoutTasks() 885 void FrameView::scheduleOrPerformPostLayoutTasks()
888 { 886 {
889 if (m_postLayoutTasksTimer.isActive()) 887 if (m_postLayoutTasksTimer.isActive())
890 return; 888 return;
891 889
892 if (!m_inSynchronousPostLayout) { 890 if (!m_inSynchronousPostLayout) {
(...skipping 3098 matching lines...) Expand 10 before | Expand all | Expand 10 after
3991 LayoutObject* FrameView::viewportLayoutObject() 3989 LayoutObject* FrameView::viewportLayoutObject()
3992 { 3990 {
3993 if (Document* document = frame().document()) { 3991 if (Document* document = frame().document()) {
3994 if (Element* element = document->viewportDefiningElement()) 3992 if (Element* element = document->viewportDefiningElement())
3995 return element->layoutObject(); 3993 return element->layoutObject();
3996 } 3994 }
3997 return nullptr; 3995 return nullptr;
3998 } 3996 }
3999 3997
4000 } // namespace blink 3998 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/LayoutAnalyzer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698