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 2531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2542 } | 2542 } |
2543 | 2543 |
2544 ASSERT(isHTMLElement() || isSVGElement()); | 2544 ASSERT(isHTMLElement() || isSVGElement()); |
2545 setFlag(CustomElement); | 2545 setFlag(CustomElement); |
2546 setFlag(newState == Upgraded, CustomElementUpgraded); | 2546 setFlag(newState == Upgraded, CustomElementUpgraded); |
2547 | 2547 |
2548 if (oldState == NotCustomElement || newState == Upgraded) | 2548 if (oldState == NotCustomElement || newState == Upgraded) |
2549 setNeedsStyleRecalc(SubtreeStyleChange); // :unresolved has changed | 2549 setNeedsStyleRecalc(SubtreeStyleChange); // :unresolved has changed |
2550 } | 2550 } |
2551 | 2551 |
2552 Element* Node::previousElementSibling() const | |
2553 { | |
2554 return ElementTraversal::previousSibling(*this); | |
2555 } | |
2556 | |
2557 Element* Node::nextElementSibling() const | |
2558 { | |
2559 return ElementTraversal::nextSibling(*this); | |
2560 } | |
2561 | |
2562 } // namespace WebCore | 2552 } // namespace WebCore |
2563 | 2553 |
2564 #ifndef NDEBUG | 2554 #ifndef NDEBUG |
2565 | 2555 |
2566 void showTree(const WebCore::Node* node) | 2556 void showTree(const WebCore::Node* node) |
2567 { | 2557 { |
2568 if (node) | 2558 if (node) |
2569 node->showTreeForThis(); | 2559 node->showTreeForThis(); |
2570 } | 2560 } |
2571 | 2561 |
2572 void showNodePath(const WebCore::Node* node) | 2562 void showNodePath(const WebCore::Node* node) |
2573 { | 2563 { |
2574 if (node) | 2564 if (node) |
2575 node->showNodePathForThis(); | 2565 node->showNodePathForThis(); |
2576 } | 2566 } |
2577 | 2567 |
2578 #endif | 2568 #endif |
OLD | NEW |