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

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

Issue 465223002: [ Do not submit ] Prototype for invalidation analysis Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Unify the three invalidation trace event categories Created 6 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
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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 #include "core/events/TouchEvent.h" 75 #include "core/events/TouchEvent.h"
76 #include "core/events/UIEvent.h" 76 #include "core/events/UIEvent.h"
77 #include "core/events/WheelEvent.h" 77 #include "core/events/WheelEvent.h"
78 #include "core/frame/EventHandlerRegistry.h" 78 #include "core/frame/EventHandlerRegistry.h"
79 #include "core/frame/LocalFrame.h" 79 #include "core/frame/LocalFrame.h"
80 #include "core/frame/Settings.h" 80 #include "core/frame/Settings.h"
81 #include "core/html/HTMLAnchorElement.h" 81 #include "core/html/HTMLAnchorElement.h"
82 #include "core/html/HTMLDialogElement.h" 82 #include "core/html/HTMLDialogElement.h"
83 #include "core/html/HTMLFrameOwnerElement.h" 83 #include "core/html/HTMLFrameOwnerElement.h"
84 #include "core/html/HTMLStyleElement.h" 84 #include "core/html/HTMLStyleElement.h"
85 #include "core/inspector/InspectorTraceEvents.h"
85 #include "core/page/ContextMenuController.h" 86 #include "core/page/ContextMenuController.h"
86 #include "core/page/EventHandler.h" 87 #include "core/page/EventHandler.h"
87 #include "core/page/Page.h" 88 #include "core/page/Page.h"
88 #include "core/rendering/FlowThreadController.h" 89 #include "core/rendering/FlowThreadController.h"
89 #include "core/rendering/RenderBox.h" 90 #include "core/rendering/RenderBox.h"
90 #include "core/svg/graphics/SVGImage.h" 91 #include "core/svg/graphics/SVGImage.h"
91 #include "platform/EventDispatchForbiddenScope.h" 92 #include "platform/EventDispatchForbiddenScope.h"
92 #include "platform/Partitions.h" 93 #include "platform/Partitions.h"
93 #include "platform/TraceEvent.h" 94 #include "platform/TraceEvent.h"
94 #include "platform/TracedValue.h" 95 #include "platform/TracedValue.h"
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 { 770 {
770 ASSERT(changeType != NoStyleChange); 771 ASSERT(changeType != NoStyleChange);
771 if (!inActiveDocument()) 772 if (!inActiveDocument())
772 return; 773 return;
773 774
774 StyleChangeType existingChangeType = styleChangeType(); 775 StyleChangeType existingChangeType = styleChangeType();
775 if (changeType > existingChangeType) { 776 if (changeType > existingChangeType) {
776 setStyleChange(changeType); 777 setStyleChange(changeType);
777 if (changeType >= SubtreeStyleChange) 778 if (changeType >= SubtreeStyleChange)
778 traceStyleChangeIfNeeded(changeType); 779 traceStyleChangeIfNeeded(changeType);
780 TRACE_EVENT_INSTANT1(
781 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"),
782 "StyleInvalidationTracking",
783 "data",
784 InspectorStyleInvalidationTrackingEvent::data(this));
779 } 785 }
780 786
781 if (existingChangeType == NoStyleChange) 787 if (existingChangeType == NoStyleChange)
782 markAncestorsWithChildNeedsStyleRecalc(); 788 markAncestorsWithChildNeedsStyleRecalc();
783 789
784 if (isElementNode() && hasRareData()) 790 if (isElementNode() && hasRareData())
785 toElement(*this).setAnimationStyleChange(false); 791 toElement(*this).setAnimationStyleChange(false);
786 } 792 }
787 793
788 void Node::clearNeedsStyleRecalc() 794 void Node::clearNeedsStyleRecalc()
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after
2500 node->showTreeForThis(); 2506 node->showTreeForThis();
2501 } 2507 }
2502 2508
2503 void showNodePath(const blink::Node* node) 2509 void showNodePath(const blink::Node* node)
2504 { 2510 {
2505 if (node) 2511 if (node)
2506 node->showNodePathForThis(); 2512 node->showNodePathForThis();
2507 } 2513 }
2508 2514
2509 #endif 2515 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorTraceEvents.h » ('j') | Source/core/inspector/InspectorTraceEvents.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698