Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: sky/engine/core/dom/Node.cpp

Issue 842033004: Remove custom element :unresolved. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/css/resolver/SharedStyleFinder.cpp ('k') | sky/engine/core/frame/UseCounter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/SharedStyleFinder.cpp ('k') | sky/engine/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698