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

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

Issue 423093002: Oilpan: Prepare to move RenderObject and RenderObjectChildList to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add more trace Created 6 years, 4 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 2429 matching lines...) Expand 10 before | Expand all | Expand 10 after
2440 if (oldState == NotCustomElement || newState == Upgraded) 2440 if (oldState == NotCustomElement || newState == Upgraded)
2441 setNeedsStyleRecalc(SubtreeStyleChange); // :unresolved has changed 2441 setNeedsStyleRecalc(SubtreeStyleChange); // :unresolved has changed
2442 } 2442 }
2443 2443
2444 void Node::trace(Visitor* visitor) 2444 void Node::trace(Visitor* visitor)
2445 { 2445 {
2446 #if ENABLE(OILPAN) 2446 #if ENABLE(OILPAN)
2447 visitor->trace(m_parentOrShadowHostNode); 2447 visitor->trace(m_parentOrShadowHostNode);
2448 visitor->trace(m_previous); 2448 visitor->trace(m_previous);
2449 visitor->trace(m_next); 2449 visitor->trace(m_next);
2450 // rareData() and m_data.m_renderer share their storage. We have to trace
2451 // only one of them.
2450 if (hasRareData()) 2452 if (hasRareData())
2451 visitor->trace(rareData()); 2453 visitor->trace(rareData());
2454 else
2455 visitor->trace(m_data.m_renderer);
2452 visitor->trace(m_treeScope); 2456 visitor->trace(m_treeScope);
2453 #endif 2457 #endif
2454 EventTarget::trace(visitor); 2458 EventTarget::trace(visitor);
2455 } 2459 }
2456 2460
2457 unsigned Node::lengthOfContents() const 2461 unsigned Node::lengthOfContents() const
2458 { 2462 {
2459 // This switch statement must be consistent with that of Range::processConte ntsBetweenOffsets. 2463 // This switch statement must be consistent with that of Range::processConte ntsBetweenOffsets.
2460 switch (nodeType()) { 2464 switch (nodeType()) {
2461 case Node::TEXT_NODE: 2465 case Node::TEXT_NODE:
(...skipping 30 matching lines...) Expand all
2492 node->showTreeForThis(); 2496 node->showTreeForThis();
2493 } 2497 }
2494 2498
2495 void showNodePath(const blink::Node* node) 2499 void showNodePath(const blink::Node* node)
2496 { 2500 {
2497 if (node) 2501 if (node)
2498 node->showNodePathForThis(); 2502 node->showNodePathForThis();
2499 } 2503 }
2500 2504
2501 #endif 2505 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698