| 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 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1671 break; | 1671 break; |
| 1672 | 1672 |
| 1673 case Upgraded: | 1673 case Upgraded: |
| 1674 ASSERT(WaitingForUpgrade == oldState); | 1674 ASSERT(WaitingForUpgrade == oldState); |
| 1675 break; | 1675 break; |
| 1676 } | 1676 } |
| 1677 | 1677 |
| 1678 ASSERT(isHTMLElement()); | 1678 ASSERT(isHTMLElement()); |
| 1679 setFlag(CustomElementFlag); | 1679 setFlag(CustomElementFlag); |
| 1680 setFlag(newState == Upgraded, CustomElementUpgradedFlag); | 1680 setFlag(newState == Upgraded, CustomElementUpgradedFlag); |
| 1681 | |
| 1682 if (oldState == NotCustomElement || newState == Upgraded) | |
| 1683 setNeedsStyleRecalc(SubtreeStyleChange); // :unresolved has changed | |
| 1684 } | 1681 } |
| 1685 | 1682 |
| 1686 unsigned Node::lengthOfContents() const | 1683 unsigned Node::lengthOfContents() const |
| 1687 { | 1684 { |
| 1688 // This switch statement must be consistent with that of Range::processConte
ntsBetweenOffsets. | 1685 // This switch statement must be consistent with that of Range::processConte
ntsBetweenOffsets. |
| 1689 switch (nodeType()) { | 1686 switch (nodeType()) { |
| 1690 case Node::TEXT_NODE: | 1687 case Node::TEXT_NODE: |
| 1691 return toCharacterData(this)->length(); | 1688 return toCharacterData(this)->length(); |
| 1692 case Node::ELEMENT_NODE: | 1689 case Node::ELEMENT_NODE: |
| 1693 case Node::DOCUMENT_NODE: | 1690 case Node::DOCUMENT_NODE: |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1729 node->showTreeForThis(); | 1726 node->showTreeForThis(); |
| 1730 } | 1727 } |
| 1731 | 1728 |
| 1732 void showNodePath(const blink::Node* node) | 1729 void showNodePath(const blink::Node* node) |
| 1733 { | 1730 { |
| 1734 if (node) | 1731 if (node) |
| 1735 node->showNodePathForThis(); | 1732 node->showNodePathForThis(); |
| 1736 } | 1733 } |
| 1737 | 1734 |
| 1738 #endif | 1735 #endif |
| OLD | NEW |