Changeset 103701 in webkit


Ignore:
Timestamp:
Dec 26, 2011 11:12:57 PM (12 years ago)
Author:
morrita@google.com
Message:

[Refactoring] Node::setTreeScopeRecursively() doesn't need includeRoot parameter
https://bugs.webkit.org/show_bug.cgi?id=75240

Reviewed by Anders Carlsson.

No new tests. No behavior change.

  • dom/Node.cpp:

(WebCore::Node::setTreeScopeRecursively):

  • dom/Node.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r103692 r103701  
     12011-12-26  Hajime Morrita  <morrita@chromium.org>
     2
     3        [Refactoring] Node::setTreeScopeRecursively() doesn't need includeRoot parameter
     4        https://bugs.webkit.org/show_bug.cgi?id=75240
     5
     6        Reviewed by Anders Carlsson.
     7
     8        No new tests. No behavior change.
     9
     10        * dom/Node.cpp:
     11        (WebCore::Node::setTreeScopeRecursively):
     12        * dom/Node.h:
     13
    1142011-12-26  Darin Adler  <darin@apple.com>
    215
  • trunk/Source/WebCore/dom/Node.cpp

    r103685 r103701  
    460460}
    461461
    462 void Node::setTreeScopeRecursively(TreeScope* newTreeScope, bool includeRoot)
     462void Node::setTreeScopeRecursively(TreeScope* newTreeScope)
    463463{
    464464    ASSERT(this);
    465     ASSERT(!includeRoot || !isDocumentNode());
     465    ASSERT(!isDocumentNode());
    466466    ASSERT(newTreeScope);
    467467    ASSERT(!m_deletionHasBegun);
     
    480480        currentDocument->incDOMTreeVersion();
    481481
    482     for (Node* node = includeRoot ? this : traverseNextNode(this); node; node = node->traverseNextNode(this)) {
     482    for (Node* node = this; node; node = node->traverseNextNode(this)) {
    483483        if (newTreeScope == newDocument) {
    484484            if (node->hasRareData())
  • trunk/Source/WebCore/dom/Node.h

    r103679 r103701  
    385385
    386386    // Used by the basic DOM methods (e.g., appendChild()).
    387     void setTreeScopeRecursively(TreeScope*, bool includeRoot = true);
     387    void setTreeScopeRecursively(TreeScope*);
    388388
    389389    // Returns true if this node is associated with a document and is in its associated document's
Note: See TracChangeset for help on using the changeset viewer.