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

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

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | 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 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after
2353 } 2353 }
2354 2354
2355 ASSERT(isHTMLElement() || isSVGElement()); 2355 ASSERT(isHTMLElement() || isSVGElement());
2356 setFlag(CustomElementFlag); 2356 setFlag(CustomElementFlag);
2357 setFlag(newState == Upgraded, CustomElementUpgradedFlag); 2357 setFlag(newState == Upgraded, CustomElementUpgradedFlag);
2358 2358
2359 if (oldState == NotCustomElement || newState == Upgraded) 2359 if (oldState == NotCustomElement || newState == Upgraded)
2360 setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::cre ateWithExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::Unresolve d)); // :unresolved has changed 2360 setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::cre ateWithExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::Unresolve d)); // :unresolved has changed
2361 } 2361 }
2362 2362
2363 void Node::trace(Visitor* visitor) 2363 DEFINE_TRACE(Node)
2364 { 2364 {
2365 #if ENABLE(OILPAN) 2365 #if ENABLE(OILPAN)
2366 visitor->trace(m_parentOrShadowHostNode); 2366 visitor->trace(m_parentOrShadowHostNode);
2367 visitor->trace(m_previous); 2367 visitor->trace(m_previous);
2368 visitor->trace(m_next); 2368 visitor->trace(m_next);
2369 // rareData() and m_data.m_renderer share their storage. We have to trace 2369 // rareData() and m_data.m_renderer share their storage. We have to trace
2370 // only one of them. 2370 // only one of them.
2371 if (hasRareData()) 2371 if (hasRareData())
2372 visitor->trace(rareData()); 2372 visitor->trace(rareData());
2373 2373
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
2438 node->showTreeForThis(); 2438 node->showTreeForThis();
2439 } 2439 }
2440 2440
2441 void showNodePath(const blink::Node* node) 2441 void showNodePath(const blink::Node* node)
2442 { 2442 {
2443 if (node) 2443 if (node)
2444 node->showNodePathForThis(); 2444 node->showNodePathForThis();
2445 } 2445 }
2446 2446
2447 #endif 2447 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698