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

Side by Side Diff: Source/core/dom/Document.h

Issue 16865007: Make createNodeIterator() and createTreeWalker() accept default arguments. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use type tags in tests. Created 7 years, 6 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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 Vector<String> formElementsState() const; 461 Vector<String> formElementsState() const;
462 void setStateForNewFormElements(const Vector<String>&); 462 void setStateForNewFormElements(const Vector<String>&);
463 463
464 FrameView* view() const; // can be NULL 464 FrameView* view() const; // can be NULL
465 Frame* frame() const { return m_frame; } // can be NULL 465 Frame* frame() const { return m_frame; } // can be NULL
466 Page* page() const; // can be NULL 466 Page* page() const; // can be NULL
467 Settings* settings() const; // can be NULL 467 Settings* settings() const; // can be NULL
468 468
469 PassRefPtr<Range> createRange(); 469 PassRefPtr<Range> createRange();
470 470
471 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, 471 PassRefPtr<NodeIterator> createNodeIterator(Node* root, ExceptionCode&);
472 PassRefPtr<NodeFilter>, bool expandEntityReferences, ExceptionCode&); 472 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, ExceptionCode&);
473 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, PassRefPtr<NodeFilter>, ExceptionCode&);
474 PassRefPtr<NodeIterator> createNodeIterator(Node* root, unsigned whatToShow, PassRefPtr<NodeFilter>, bool expandEntityReferences, ExceptionCode&);
473 475
474 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, 476 PassRefPtr<TreeWalker> createTreeWalker(Node* root, ExceptionCode&);
475 PassRefPtr<NodeFilter>, bool expandEntityReferences, ExceptionCode&); 477 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Exc eptionCode&);
478 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Pas sRefPtr<NodeFilter>, ExceptionCode&);
479 PassRefPtr<TreeWalker> createTreeWalker(Node* root, unsigned whatToShow, Pas sRefPtr<NodeFilter>, bool expandEntityReferences, ExceptionCode&);
476 480
477 // Special support for editing 481 // Special support for editing
478 PassRefPtr<CSSStyleDeclaration> createCSSStyleDeclaration(); 482 PassRefPtr<CSSStyleDeclaration> createCSSStyleDeclaration();
479 PassRefPtr<Text> createEditingTextNode(const String&); 483 PassRefPtr<Text> createEditingTextNode(const String&);
480 484
481 void recalcStyle(StyleChange = NoChange); 485 void recalcStyle(StyleChange = NoChange);
482 bool childNeedsAndNotInStyleRecalc(); 486 bool childNeedsAndNotInStyleRecalc();
483 void updateStyleIfNeeded(); 487 void updateStyleIfNeeded();
484 void updateLayout(); 488 void updateLayout();
485 void updateLayoutIgnorePendingStylesheets(); 489 void updateLayoutIgnorePendingStylesheets();
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 inline bool Node::isDocumentNode() const 1497 inline bool Node::isDocumentNode() const
1494 { 1498 {
1495 return this == documentInternal(); 1499 return this == documentInternal();
1496 } 1500 }
1497 1501
1498 Node* eventTargetNodeForDocument(Document*); 1502 Node* eventTargetNodeForDocument(Document*);
1499 1503
1500 } // namespace WebCore 1504 } // namespace WebCore
1501 1505
1502 #endif // Document_h 1506 #endif // Document_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/TreeWalker/TreeWalker-basic-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698