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

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

Issue 23521004: Remove StackStats. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Windows compile. Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/rendering/RenderBlock.cpp » ('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) 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 r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 // View layout should not be re-entrant. 1736 // View layout should not be re-entrant.
1737 ASSERT_NOT_REACHED(); 1737 ASSERT_NOT_REACHED();
1738 return; 1738 return;
1739 } 1739 }
1740 1740
1741 if (Element* oe = ownerElement()) 1741 if (Element* oe = ownerElement())
1742 oe->document()->updateLayout(); 1742 oe->document()->updateLayout();
1743 1743
1744 updateStyleIfNeeded(); 1744 updateStyleIfNeeded();
1745 1745
1746 StackStats::LayoutCheckPoint layoutCheckPoint;
1747
1748 // Only do a layout if changes have occurred that make it necessary. 1746 // Only do a layout if changes have occurred that make it necessary.
1749 if (frameView && renderer() && (frameView->layoutPending() || renderer()->ne edsLayout())) 1747 if (frameView && renderer() && (frameView->layoutPending() || renderer()->ne edsLayout()))
1750 frameView->layout(); 1748 frameView->layout();
1751 1749
1752 setNeedsFocusedElementCheck(); 1750 setNeedsFocusedElementCheck();
1753 } 1751 }
1754 1752
1755 void Document::setNeedsFocusedElementCheck() 1753 void Document::setNeedsFocusedElementCheck()
1756 { 1754 {
1757 // FIXME: Using a Task doesn't look a good idea. 1755 // FIXME: Using a Task doesn't look a good idea.
(...skipping 3498 matching lines...) Expand 10 before | Expand all | Expand 10 after
5256 { 5254 {
5257 return DocumentLifecycleNotifier::create(this); 5255 return DocumentLifecycleNotifier::create(this);
5258 } 5256 }
5259 5257
5260 DocumentLifecycleNotifier* Document::lifecycleNotifier() 5258 DocumentLifecycleNotifier* Document::lifecycleNotifier()
5261 { 5259 {
5262 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec ycleNotifier()); 5260 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec ycleNotifier());
5263 } 5261 }
5264 5262
5265 } // namespace WebCore 5263 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698