| 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 2549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2560 case Upgraded: | 2560 case Upgraded: |
| 2561 ASSERT(WaitingForUpgrade == oldState); | 2561 ASSERT(WaitingForUpgrade == oldState); |
| 2562 break; | 2562 break; |
| 2563 } | 2563 } |
| 2564 | 2564 |
| 2565 ASSERT(isHTMLElement() || isSVGElement()); | 2565 ASSERT(isHTMLElement() || isSVGElement()); |
| 2566 setFlag(CustomElement); | 2566 setFlag(CustomElement); |
| 2567 setFlag(newState == Upgraded, CustomElementUpgraded); | 2567 setFlag(newState == Upgraded, CustomElementUpgraded); |
| 2568 | 2568 |
| 2569 if (oldState == NotCustomElement || newState == Upgraded) | 2569 if (oldState == NotCustomElement || newState == Upgraded) |
| 2570 setNeedsStyleRecalc(); // :unresolved has changed | 2570 setNeedsStyleRecalc(SubtreeStyleChange); // :unresolved has changed |
| 2571 } | 2571 } |
| 2572 | 2572 |
| 2573 } // namespace WebCore | 2573 } // namespace WebCore |
| 2574 | 2574 |
| 2575 #ifndef NDEBUG | 2575 #ifndef NDEBUG |
| 2576 | 2576 |
| 2577 void showTree(const WebCore::Node* node) | 2577 void showTree(const WebCore::Node* node) |
| 2578 { | 2578 { |
| 2579 if (node) | 2579 if (node) |
| 2580 node->showTreeForThis(); | 2580 node->showTreeForThis(); |
| 2581 } | 2581 } |
| 2582 | 2582 |
| 2583 void showNodePath(const WebCore::Node* node) | 2583 void showNodePath(const WebCore::Node* node) |
| 2584 { | 2584 { |
| 2585 if (node) | 2585 if (node) |
| 2586 node->showNodePathForThis(); | 2586 node->showNodePathForThis(); |
| 2587 } | 2587 } |
| 2588 | 2588 |
| 2589 #endif | 2589 #endif |
| OLD | NEW |