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

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

Issue 106423002: Remove fourth argument to createNodeIterator/createTreeWalker (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: base files Created 7 years 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
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 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) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1455 PassRefPtr<NodeIterator> Document::createNodeIterator(Node* root, unsigned whatT oShow, PassRefPtr<NodeFilter> filter, ExceptionState& exceptionState) 1455 PassRefPtr<NodeIterator> Document::createNodeIterator(Node* root, unsigned whatT oShow, PassRefPtr<NodeFilter> filter, ExceptionState& exceptionState)
1456 { 1456 {
1457 if (!root) { 1457 if (!root) {
1458 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r); 1458 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r);
1459 return 0; 1459 return 0;
1460 } 1460 }
1461 // FIXME: Ditto. 1461 // FIXME: Ditto.
1462 return NodeIterator::create(root, whatToShow, filter); 1462 return NodeIterator::create(root, whatToShow, filter);
1463 } 1463 }
1464 1464
1465 PassRefPtr<NodeIterator> Document::createNodeIterator(Node* root, unsigned whatT oShow, PassRefPtr<NodeFilter> filter, bool expandEntityReferences, ExceptionStat e& exceptionState)
1466 {
1467 if (!root) {
1468 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r);
1469 return 0;
1470 }
1471 // FIXME: Warn if |expandEntityReferences| is specified. This optional argum ent is deprecated in DOM4.
1472 UNUSED_PARAM(expandEntityReferences);
1473 return NodeIterator::create(root, whatToShow, filter);
1474 }
1475
1476 PassRefPtr<TreeWalker> Document::createTreeWalker(Node* root, ExceptionState& ex ceptionState) 1465 PassRefPtr<TreeWalker> Document::createTreeWalker(Node* root, ExceptionState& ex ceptionState)
1477 { 1466 {
1478 if (!root) { 1467 if (!root) {
1479 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r); 1468 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r);
1480 return 0; 1469 return 0;
1481 } 1470 }
1482 return TreeWalker::create(root, NodeFilter::SHOW_ALL, PassRefPtr<NodeFilter> ()); 1471 return TreeWalker::create(root, NodeFilter::SHOW_ALL, PassRefPtr<NodeFilter> ());
1483 } 1472 }
1484 1473
1485 PassRefPtr<TreeWalker> Document::createTreeWalker(Node* root, unsigned whatToSho w, ExceptionState& exceptionState) 1474 PassRefPtr<TreeWalker> Document::createTreeWalker(Node* root, unsigned whatToSho w, ExceptionState& exceptionState)
1486 { 1475 {
1487 if (!root) { 1476 if (!root) {
1488 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r); 1477 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r);
1489 return 0; 1478 return 0;
1490 } 1479 }
1491 return TreeWalker::create(root, whatToShow, PassRefPtr<NodeFilter>()); 1480 return TreeWalker::create(root, whatToShow, PassRefPtr<NodeFilter>());
1492 } 1481 }
1493 1482
1494 PassRefPtr<TreeWalker> Document::createTreeWalker(Node* root, unsigned whatToSho w, PassRefPtr<NodeFilter> filter, ExceptionState& exceptionState) 1483 PassRefPtr<TreeWalker> Document::createTreeWalker(Node* root, unsigned whatToSho w, PassRefPtr<NodeFilter> filter, ExceptionState& exceptionState)
1495 { 1484 {
1496 if (!root) { 1485 if (!root) {
1497 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r); 1486 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r);
1498 return 0; 1487 return 0;
1499 } 1488 }
1500 return TreeWalker::create(root, whatToShow, filter); 1489 return TreeWalker::create(root, whatToShow, filter);
1501 } 1490 }
1502 1491
1503 PassRefPtr<TreeWalker> Document::createTreeWalker(Node* root, unsigned whatToSho w, PassRefPtr<NodeFilter> filter, bool expandEntityReferences, ExceptionState& e xceptionState)
1504 {
1505 UNUSED_PARAM(expandEntityReferences);
1506 if (!root) {
1507 exceptionState.throwUninformativeAndGenericDOMException(NotSupportedErro r);
1508 return 0;
1509 }
1510 return TreeWalker::create(root, whatToShow, filter);
1511 }
1512
1513 void Document::scheduleStyleRecalc() 1492 void Document::scheduleStyleRecalc()
1514 { 1493 {
1515 if (shouldDisplaySeamlesslyWithParent()) { 1494 if (shouldDisplaySeamlesslyWithParent()) {
1516 // When we're seamless, our parent document manages our style recalcs. 1495 // When we're seamless, our parent document manages our style recalcs.
1517 ownerElement()->setNeedsStyleRecalc(); 1496 ownerElement()->setNeedsStyleRecalc();
1518 ownerElement()->document().scheduleStyleRecalc(); 1497 ownerElement()->document().scheduleStyleRecalc();
1519 return; 1498 return;
1520 } 1499 }
1521 1500
1522 if (m_styleRecalcTimer.isActive()) 1501 if (m_styleRecalcTimer.isActive())
(...skipping 3708 matching lines...) Expand 10 before | Expand all | Expand 10 after
5231 } 5210 }
5232 5211
5233 FastTextAutosizer* Document::fastTextAutosizer() 5212 FastTextAutosizer* Document::fastTextAutosizer()
5234 { 5213 {
5235 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d()) 5214 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d())
5236 m_fastTextAutosizer = FastTextAutosizer::create(this); 5215 m_fastTextAutosizer = FastTextAutosizer::create(this);
5237 return m_fastTextAutosizer.get(); 5216 return m_fastTextAutosizer.get();
5238 } 5217 }
5239 5218
5240 } // namespace WebCore 5219 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698