OLD | NEW |
---|---|
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 #include "core/events/TextEvent.h" | 72 #include "core/events/TextEvent.h" |
73 #include "core/events/TouchEvent.h" | 73 #include "core/events/TouchEvent.h" |
74 #include "core/events/UIEvent.h" | 74 #include "core/events/UIEvent.h" |
75 #include "core/events/WheelEvent.h" | 75 #include "core/events/WheelEvent.h" |
76 #include "core/frame/EventHandlerRegistry.h" | 76 #include "core/frame/EventHandlerRegistry.h" |
77 #include "core/frame/LocalFrame.h" | 77 #include "core/frame/LocalFrame.h" |
78 #include "core/html/HTMLAnchorElement.h" | 78 #include "core/html/HTMLAnchorElement.h" |
79 #include "core/html/HTMLDialogElement.h" | 79 #include "core/html/HTMLDialogElement.h" |
80 #include "core/html/HTMLFrameOwnerElement.h" | 80 #include "core/html/HTMLFrameOwnerElement.h" |
81 #include "core/html/HTMLStyleElement.h" | 81 #include "core/html/HTMLStyleElement.h" |
82 #include "core/inspector/InspectorTraceEvents.h" | |
82 #include "core/page/ContextMenuController.h" | 83 #include "core/page/ContextMenuController.h" |
83 #include "core/page/EventHandler.h" | 84 #include "core/page/EventHandler.h" |
84 #include "core/page/Page.h" | 85 #include "core/page/Page.h" |
85 #include "core/frame/Settings.h" | 86 #include "core/frame/Settings.h" |
86 #include "core/rendering/FlowThreadController.h" | 87 #include "core/rendering/FlowThreadController.h" |
87 #include "core/rendering/RenderBox.h" | 88 #include "core/rendering/RenderBox.h" |
88 #include "core/svg/graphics/SVGImage.h" | 89 #include "core/svg/graphics/SVGImage.h" |
89 #include "platform/EventDispatchForbiddenScope.h" | 90 #include "platform/EventDispatchForbiddenScope.h" |
90 #include "platform/Partitions.h" | 91 #include "platform/Partitions.h" |
91 #include "platform/TraceEvent.h" | 92 #include "platform/TraceEvent.h" |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
768 { | 769 { |
769 ASSERT(changeType != NoStyleChange); | 770 ASSERT(changeType != NoStyleChange); |
770 if (!inActiveDocument()) | 771 if (!inActiveDocument()) |
771 return; | 772 return; |
772 | 773 |
773 StyleChangeType existingChangeType = styleChangeType(); | 774 StyleChangeType existingChangeType = styleChangeType(); |
774 if (changeType > existingChangeType) { | 775 if (changeType > existingChangeType) { |
775 setStyleChange(changeType); | 776 setStyleChange(changeType); |
776 if (changeType >= SubtreeStyleChange) | 777 if (changeType >= SubtreeStyleChange) |
777 traceStyleChangeIfNeeded(changeType); | 778 traceStyleChangeIfNeeded(changeType); |
779 TRACE_EVENT_INSTANT1( | |
780 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.styleInvalidationTracki ng"), | |
caseq
2014/08/26 12:19:07
nit: I wonder if category needs to be that specifi
| |
781 "StyleInvalidationTracking", | |
782 "data", | |
783 InspectorStyleInvalidationTrackingEvent::data(this)); | |
778 } | 784 } |
779 | 785 |
780 if (existingChangeType == NoStyleChange) | 786 if (existingChangeType == NoStyleChange) |
781 markAncestorsWithChildNeedsStyleRecalc(); | 787 markAncestorsWithChildNeedsStyleRecalc(); |
782 | 788 |
783 if (isElementNode() && hasRareData()) | 789 if (isElementNode() && hasRareData()) |
784 toElement(*this).setAnimationStyleChange(false); | 790 toElement(*this).setAnimationStyleChange(false); |
785 } | 791 } |
786 | 792 |
787 void Node::clearNeedsStyleRecalc() | 793 void Node::clearNeedsStyleRecalc() |
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2482 node->showTreeForThis(); | 2488 node->showTreeForThis(); |
2483 } | 2489 } |
2484 | 2490 |
2485 void showNodePath(const blink::Node* node) | 2491 void showNodePath(const blink::Node* node) |
2486 { | 2492 { |
2487 if (node) | 2493 if (node) |
2488 node->showNodePathForThis(); | 2494 node->showNodePathForThis(); |
2489 } | 2495 } |
2490 | 2496 |
2491 #endif | 2497 #endif |
OLD | NEW |