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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2704133004: Perf bots for https://codereview.chromium.org/2473743003 (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
(...skipping 2041 matching lines...) Expand 10 before | Expand all | Expand 10 after
2052 StyleResolver& resolver = ensureStyleResolver(); 2052 StyleResolver& resolver = ensureStyleResolver();
2053 2053
2054 bool shouldRecordStats; 2054 bool shouldRecordStats;
2055 TRACE_EVENT_CATEGORY_GROUP_ENABLED("blink,blink_style", &shouldRecordStats); 2055 TRACE_EVENT_CATEGORY_GROUP_ENABLED("blink,blink_style", &shouldRecordStats);
2056 styleEngine().setStatsEnabled(shouldRecordStats); 2056 styleEngine().setStatsEnabled(shouldRecordStats);
2057 2057
2058 if (Element* documentElement = this->documentElement()) { 2058 if (Element* documentElement = this->documentElement()) {
2059 inheritHtmlAndBodyElementStyles(change); 2059 inheritHtmlAndBodyElementStyles(change);
2060 if (documentElement->shouldCallRecalcStyle(change)) 2060 if (documentElement->shouldCallRecalcStyle(change))
2061 documentElement->recalcStyle(change); 2061 documentElement->recalcStyle(change);
2062 if (documentElement->needsReattachLayoutTree() ||
2063 documentElement->childNeedsReattachLayoutTree())
2064 documentElement->rebuildLayoutTree();
2062 } 2065 }
2063 2066
2064 view()->recalcOverflowAfterStyleChange(); 2067 view()->recalcOverflowAfterStyleChange();
2065 2068
2066 // Only retain the HashMap for the duration of StyleRecalc and 2069 // Only retain the HashMap for the duration of StyleRecalc and
2067 // LayoutTreeConstruction. 2070 // LayoutTreeConstruction.
2068 m_styleReattachDataMap.clear(); 2071 m_styleReattachDataMap.clear();
2069 clearChildNeedsStyleRecalc(); 2072 clearChildNeedsStyleRecalc();
2070 clearChildNeedsReattachLayoutTree(); 2073 clearChildNeedsReattachLayoutTree();
2071 2074
(...skipping 4526 matching lines...) Expand 10 before | Expand all | Expand 10 after
6598 } 6601 }
6599 6602
6600 void showLiveDocumentInstances() { 6603 void showLiveDocumentInstances() {
6601 WeakDocumentSet& set = liveDocumentSet(); 6604 WeakDocumentSet& set = liveDocumentSet();
6602 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6605 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6603 for (blink::Document* document : set) 6606 for (blink::Document* document : set)
6604 fprintf(stderr, "- Document %p URL: %s\n", document, 6607 fprintf(stderr, "- Document %p URL: %s\n", document,
6605 document->url().getString().utf8().data()); 6608 document->url().getString().utf8().data());
6606 } 6609 }
6607 #endif 6610 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContainerNode.cpp ('k') | third_party/WebKit/Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698