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

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

Issue 1917883002: Remove TraceWrappers idl attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after
2257 visitor->trace(m_next); 2257 visitor->trace(m_next);
2258 // rareData() and m_data.m_layoutObject share their storage. We have to trac e 2258 // rareData() and m_data.m_layoutObject share their storage. We have to trac e
2259 // only one of them. 2259 // only one of them.
2260 if (hasRareData()) 2260 if (hasRareData())
2261 visitor->trace(rareData()); 2261 visitor->trace(rareData());
2262 2262
2263 visitor->trace(m_treeScope); 2263 visitor->trace(m_treeScope);
2264 EventTarget::trace(visitor); 2264 EventTarget::trace(visitor);
2265 } 2265 }
2266 2266
2267 DEFINE_TRACE_WRAPPERS(Node)
haraken 2016/04/25 15:19:53 Shall we remove the tracing method for now? EventT
Marcel Hlopko 2016/04/25 15:22:34 Done.
2268 {
2269 visitor->traceWrappers(parentOrShadowHostOrTemplateHostNode());
2270 visitor->traceWrappers(m_previous);
2271 visitor->traceWrappers(m_next);
2272 EventTarget::traceWrappers(visitor);
2273 }
2274
2267 unsigned Node::lengthOfContents() const 2275 unsigned Node::lengthOfContents() const
2268 { 2276 {
2269 // This switch statement must be consistent with that of Range::processConte ntsBetweenOffsets. 2277 // This switch statement must be consistent with that of Range::processConte ntsBetweenOffsets.
2270 switch (getNodeType()) { 2278 switch (getNodeType()) {
2271 case Node::TEXT_NODE: 2279 case Node::TEXT_NODE:
2272 case Node::CDATA_SECTION_NODE: 2280 case Node::CDATA_SECTION_NODE:
2273 case Node::COMMENT_NODE: 2281 case Node::COMMENT_NODE:
2274 case Node::PROCESSING_INSTRUCTION_NODE: 2282 case Node::PROCESSING_INSTRUCTION_NODE:
2275 return toCharacterData(this)->length(); 2283 return toCharacterData(this)->length();
2276 case Node::ELEMENT_NODE: 2284 case Node::ELEMENT_NODE:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
2326 2334
2327 void showNodePath(const blink::Node* node) 2335 void showNodePath(const blink::Node* node)
2328 { 2336 {
2329 if (node) 2337 if (node)
2330 node->showNodePathForThis(); 2338 node->showNodePathForThis();
2331 else 2339 else
2332 fprintf(stderr, "Cannot showNodePath for (nil)\n"); 2340 fprintf(stderr, "Cannot showNodePath for (nil)\n");
2333 } 2341 }
2334 2342
2335 #endif 2343 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698