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

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

Issue 941913002: Remove two more uses of NodeList (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/dom/Node.h ('k') | sky/engine/core/dom/Text.idl » ('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 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after
1553 return; 1553 return;
1554 } 1554 }
1555 1555
1556 #if ENABLE(SECURITY_ASSERT) 1556 #if ENABLE(SECURITY_ASSERT)
1557 m_deletionHasBegun = true; 1557 m_deletionHasBegun = true;
1558 #endif 1558 #endif
1559 delete this; 1559 delete this;
1560 } 1560 }
1561 #endif 1561 #endif
1562 1562
1563 PassRefPtr<StaticNodeList> Node::getDestinationInsertionPoints() 1563 Vector<RefPtr<Node>> Node::getDestinationInsertionPoints()
1564 { 1564 {
1565 document().updateDistributionForNodeIfNeeded(this); 1565 document().updateDistributionForNodeIfNeeded(this);
1566 Vector<RawPtr<InsertionPoint>, 8> insertionPoints; 1566 Vector<RawPtr<InsertionPoint>, 8> insertionPoints;
1567 collectDestinationInsertionPoints(*this, insertionPoints); 1567 collectDestinationInsertionPoints(*this, insertionPoints);
1568 // FIXME(sky): Is there an easier way to get this into a Vector<Node>? 1568 // FIXME(sky): Is there an easier way to get this into a Vector<Node>?
1569 Vector<RefPtr<Node> > nodes(insertionPoints.size()); 1569 Vector<RefPtr<Node>> result(insertionPoints.size());
1570 copyToVector(insertionPoints, nodes); 1570 copyToVector(insertionPoints, result);
1571 return StaticNodeList::adopt(nodes); 1571 return result;
1572 } 1572 }
1573 1573
1574 void Node::setFocus(bool flag) 1574 void Node::setFocus(bool flag)
1575 { 1575 {
1576 document().userActionElements().setFocused(this, flag); 1576 document().userActionElements().setFocused(this, flag);
1577 } 1577 }
1578 1578
1579 void Node::setActive(bool flag) 1579 void Node::setActive(bool flag)
1580 { 1580 {
1581 document().userActionElements().setActive(this, flag); 1581 document().userActionElements().setActive(this, flag);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1662 node->showTreeForThis(); 1662 node->showTreeForThis();
1663 } 1663 }
1664 1664
1665 void showNodePath(const blink::Node* node) 1665 void showNodePath(const blink::Node* node)
1666 { 1666 {
1667 if (node) 1667 if (node)
1668 node->showNodePathForThis(); 1668 node->showNodePathForThis();
1669 } 1669 }
1670 1670
1671 #endif 1671 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Node.h ('k') | sky/engine/core/dom/Text.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698