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

Side by Side Diff: Source/core/dom/Node.cpp

Issue 23467007: Have Range constructor take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
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 2588 matching lines...) Expand 10 before | Expand all | Expand 10 after
2599 } 2599 }
2600 2600
2601 #ifndef NDEBUG 2601 #ifndef NDEBUG
2602 m_deletionHasBegun = true; 2602 m_deletionHasBegun = true;
2603 #endif 2603 #endif
2604 delete this; 2604 delete this;
2605 } 2605 }
2606 2606
2607 void Node::textRects(Vector<IntRect>& rects) const 2607 void Node::textRects(Vector<IntRect>& rects) const
2608 { 2608 {
2609 RefPtr<Range> range = Range::create(&document()); 2609 RefPtr<Range> range = Range::create(document());
2610 range->selectNodeContents(const_cast<Node*>(this), IGNORE_EXCEPTION); 2610 range->selectNodeContents(const_cast<Node*>(this), IGNORE_EXCEPTION);
2611 range->textRects(rects); 2611 range->textRects(rects);
2612 } 2612 }
2613 2613
2614 unsigned Node::connectedSubframeCount() const 2614 unsigned Node::connectedSubframeCount() const
2615 { 2615 {
2616 return hasRareData() ? rareData()->connectedSubframeCount() : 0; 2616 return hasRareData() ? rareData()->connectedSubframeCount() : 0;
2617 } 2617 }
2618 2618
2619 void Node::incrementConnectedSubframeCount(unsigned amount) 2619 void Node::incrementConnectedSubframeCount(unsigned amount)
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
2765 node->showTreeForThis(); 2765 node->showTreeForThis();
2766 } 2766 }
2767 2767
2768 void showNodePath(const WebCore::Node* node) 2768 void showNodePath(const WebCore::Node* node)
2769 { 2769 {
2770 if (node) 2770 if (node)
2771 node->showNodePathForThis(); 2771 node->showNodePathForThis();
2772 } 2772 }
2773 2773
2774 #endif 2774 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698