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 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |