| 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 2702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2713 ASSERT(isUserActionElement()); | 2713 ASSERT(isUserActionElement()); |
| 2714 return document()->userActionElements().isFocused(this); | 2714 return document()->userActionElements().isFocused(this); |
| 2715 } | 2715 } |
| 2716 | 2716 |
| 2717 void Node::setIsCustomElement() | 2717 void Node::setIsCustomElement() |
| 2718 { | 2718 { |
| 2719 ASSERT(isHTMLElement() || isSVGElement()); | 2719 ASSERT(isHTMLElement() || isSVGElement()); |
| 2720 setFlag(IsCustomElement); | 2720 setFlag(IsCustomElement); |
| 2721 } | 2721 } |
| 2722 | 2722 |
| 2723 void Node::setIsUpgradedCustomElement() |
| 2724 { |
| 2725 ASSERT(isCustomElement()); |
| 2726 setFlag(IsUpgradedCustomElement); |
| 2727 setNeedsStyleRecalc(); // :unresolved has changed |
| 2728 } |
| 2729 |
| 2723 } // namespace WebCore | 2730 } // namespace WebCore |
| 2724 | 2731 |
| 2725 #ifndef NDEBUG | 2732 #ifndef NDEBUG |
| 2726 | 2733 |
| 2727 void showTree(const WebCore::Node* node) | 2734 void showTree(const WebCore::Node* node) |
| 2728 { | 2735 { |
| 2729 if (node) | 2736 if (node) |
| 2730 node->showTreeForThis(); | 2737 node->showTreeForThis(); |
| 2731 } | 2738 } |
| 2732 | 2739 |
| 2733 void showNodePath(const WebCore::Node* node) | 2740 void showNodePath(const WebCore::Node* node) |
| 2734 { | 2741 { |
| 2735 if (node) | 2742 if (node) |
| 2736 node->showNodePathForThis(); | 2743 node->showNodePathForThis(); |
| 2737 } | 2744 } |
| 2738 | 2745 |
| 2739 #endif | 2746 #endif |
| OLD | NEW |