| 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 2429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | |
| 2452 if (hasRareData()) | 2450 if (hasRareData()) |
| 2453 visitor->trace(rareData()); | 2451 visitor->trace(rareData()); |
| 2454 else | |
| 2455 visitor->trace(m_data.m_renderer); | |
| 2456 visitor->trace(m_treeScope); | 2452 visitor->trace(m_treeScope); |
| 2457 #endif | 2453 #endif |
| 2458 EventTarget::trace(visitor); | 2454 EventTarget::trace(visitor); |
| 2459 } | 2455 } |
| 2460 | 2456 |
| 2461 unsigned Node::lengthOfContents() const | 2457 unsigned Node::lengthOfContents() const |
| 2462 { | 2458 { |
| 2463 // This switch statement must be consistent with that of Range::processConte
ntsBetweenOffsets. | 2459 // This switch statement must be consistent with that of Range::processConte
ntsBetweenOffsets. |
| 2464 switch (nodeType()) { | 2460 switch (nodeType()) { |
| 2465 case Node::TEXT_NODE: | 2461 case Node::TEXT_NODE: |
| (...skipping 30 matching lines...) Expand all Loading... |
| 2496 node->showTreeForThis(); | 2492 node->showTreeForThis(); |
| 2497 } | 2493 } |
| 2498 | 2494 |
| 2499 void showNodePath(const blink::Node* node) | 2495 void showNodePath(const blink::Node* node) |
| 2500 { | 2496 { |
| 2501 if (node) | 2497 if (node) |
| 2502 node->showNodePathForThis(); | 2498 node->showNodePathForThis(); |
| 2503 } | 2499 } |
| 2504 | 2500 |
| 2505 #endif | 2501 #endif |
| OLD | NEW |