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

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

Issue 2046973004: Move LayoutTree snapshots to blink.debug.layout.trees category (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | no next file » | 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 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 bodyLayoutObject->setChildNeedsLayout(); 1038 bodyLayoutObject->setChildNeedsLayout();
1039 else if (rootLayoutObject && rootLayoutObject->stretchesToViewpo rt()) 1039 else if (rootLayoutObject && rootLayoutObject->stretchesToViewpo rt())
1040 rootLayoutObject->setChildNeedsLayout(); 1040 rootLayoutObject->setChildNeedsLayout();
1041 } 1041 }
1042 1042
1043 // We need to set m_doFullPaintInvalidation before triggering layout as LayoutObject::checkForPaintInvalidation 1043 // We need to set m_doFullPaintInvalidation before triggering layout as LayoutObject::checkForPaintInvalidation
1044 // checks the boolean to disable local paint invalidations. 1044 // checks the boolean to disable local paint invalidations.
1045 m_doFullPaintInvalidation |= layoutViewItem().shouldDoFullPaintInval idationForNextLayout(); 1045 m_doFullPaintInvalidation |= layoutViewItem().shouldDoFullPaintInval idationForNextLayout();
1046 } 1046 }
1047 1047
1048 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(TRACE_DISABLED_BY_DEFAULT("blink.deb ug.layout"), "LayoutTree", 1048 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(TRACE_DISABLED_BY_DEFAULT("blink.deb ug.layout.trees"), "LayoutTree",
1049 this, TracedLayoutObject::create(*layoutView(), false)); 1049 this, TracedLayoutObject::create(*layoutView(), false));
1050 1050
1051 performLayout(inSubtreeLayout); 1051 performLayout(inSubtreeLayout);
1052 1052
1053 ASSERT(m_layoutSubtreeRootList.isEmpty()); 1053 ASSERT(m_layoutSubtreeRootList.isEmpty());
1054 } // Reset m_layoutSchedulingEnabled to its previous value. 1054 } // Reset m_layoutSchedulingEnabled to its previous value.
1055 1055
1056 if (!inSubtreeLayout && !document->printing()) 1056 if (!inSubtreeLayout && !document->printing())
1057 adjustViewSizeAndLayout(); 1057 adjustViewSizeAndLayout();
1058 1058
1059 m_frameTimingRequestsDirty = true; 1059 m_frameTimingRequestsDirty = true;
1060 1060
1061 // FIXME: Could find the common ancestor layer of all dirty subtrees and mar k from there. crbug.com/462719 1061 // FIXME: Could find the common ancestor layer of all dirty subtrees and mar k from there. crbug.com/462719
1062 layoutViewItem().enclosingLayer()->updateLayerPositionsAfterLayout(); 1062 layoutViewItem().enclosingLayer()->updateLayerPositionsAfterLayout();
1063 1063
1064 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(TRACE_DISABLED_BY_DEFAULT("blink.debug.l ayout"), "LayoutTree", 1064 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID(TRACE_DISABLED_BY_DEFAULT("blink.debug.l ayout.trees"), "LayoutTree",
1065 this, TracedLayoutObject::create(*layoutView(), true)); 1065 this, TracedLayoutObject::create(*layoutView(), true));
1066 1066
1067 layoutViewItem().compositor()->didLayout(); 1067 layoutViewItem().compositor()->didLayout();
1068 1068
1069 m_layoutCount++; 1069 m_layoutCount++;
1070 1070
1071 if (AXObjectCache* cache = document->axObjectCache()) { 1071 if (AXObjectCache* cache = document->axObjectCache()) {
1072 const KURL& url = document->url(); 1072 const KURL& url = document->url();
1073 if (url.isValid() && !url.isAboutBlankURL()) 1073 if (url.isValid() && !url.isAboutBlankURL())
1074 cache->handleLayoutComplete(document); 1074 cache->handleLayoutComplete(document);
(...skipping 3078 matching lines...) Expand 10 before | Expand all | Expand 10 after
4153 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling); 4153 return m_subtreeThrottled || (m_hiddenForThrottling && m_crossOriginForThrot tling);
4154 } 4154 }
4155 4155
4156 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const 4156 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const
4157 { 4157 {
4158 ASSERT(!layoutViewItem().isNull()); 4158 ASSERT(!layoutViewItem().isNull());
4159 return *layoutView(); 4159 return *layoutView();
4160 } 4160 }
4161 4161
4162 } // namespace blink 4162 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698