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

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

Issue 371693002: Set default deep value false in Document.importNode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Take review comment into consideration Created 6 years, 5 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
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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 Location* location() const; 303 Location* location() const;
304 304
305 PassRefPtrWillBeRawPtr<Element> createElement(const AtomicString& name, Exce ptionState&); 305 PassRefPtrWillBeRawPtr<Element> createElement(const AtomicString& name, Exce ptionState&);
306 PassRefPtrWillBeRawPtr<DocumentFragment> createDocumentFragment(); 306 PassRefPtrWillBeRawPtr<DocumentFragment> createDocumentFragment();
307 PassRefPtrWillBeRawPtr<Text> createTextNode(const String& data); 307 PassRefPtrWillBeRawPtr<Text> createTextNode(const String& data);
308 PassRefPtrWillBeRawPtr<Comment> createComment(const String& data); 308 PassRefPtrWillBeRawPtr<Comment> createComment(const String& data);
309 PassRefPtrWillBeRawPtr<CDATASection> createCDATASection(const String& data, ExceptionState&); 309 PassRefPtrWillBeRawPtr<CDATASection> createCDATASection(const String& data, ExceptionState&);
310 PassRefPtrWillBeRawPtr<ProcessingInstruction> createProcessingInstruction(co nst String& target, const String& data, ExceptionState&); 310 PassRefPtrWillBeRawPtr<ProcessingInstruction> createProcessingInstruction(co nst String& target, const String& data, ExceptionState&);
311 PassRefPtrWillBeRawPtr<Attr> createAttribute(const AtomicString& name, Excep tionState&); 311 PassRefPtrWillBeRawPtr<Attr> createAttribute(const AtomicString& name, Excep tionState&);
312 PassRefPtrWillBeRawPtr<Attr> createAttributeNS(const AtomicString& namespace URI, const AtomicString& qualifiedName, ExceptionState&, bool shouldIgnoreNamesp aceChecks = false); 312 PassRefPtrWillBeRawPtr<Attr> createAttributeNS(const AtomicString& namespace URI, const AtomicString& qualifiedName, ExceptionState&, bool shouldIgnoreNamesp aceChecks = false);
313 PassRefPtrWillBeRawPtr<Node> importNode(Node* importedNode, ExceptionState&) ;
314 PassRefPtrWillBeRawPtr<Node> importNode(Node* importedNode, bool deep, Excep tionState&); 313 PassRefPtrWillBeRawPtr<Node> importNode(Node* importedNode, bool deep, Excep tionState&);
315 PassRefPtrWillBeRawPtr<Element> createElementNS(const AtomicString& namespac eURI, const AtomicString& qualifiedName, ExceptionState&); 314 PassRefPtrWillBeRawPtr<Element> createElementNS(const AtomicString& namespac eURI, const AtomicString& qualifiedName, ExceptionState&);
316 PassRefPtrWillBeRawPtr<Element> createElement(const QualifiedName&, bool cre atedByParser); 315 PassRefPtrWillBeRawPtr<Element> createElement(const QualifiedName&, bool cre atedByParser);
317 316
318 bool regionBasedColumnsEnabled() const; 317 bool regionBasedColumnsEnabled() const;
319 318
320 Element* elementFromPoint(int x, int y) const; 319 Element* elementFromPoint(int x, int y) const;
321 PassRefPtrWillBeRawPtr<Range> caretRangeFromPoint(int x, int y); 320 PassRefPtrWillBeRawPtr<Range> caretRangeFromPoint(int x, int y);
322 321
323 String readyState() const; 322 String readyState() const;
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 inline bool Node::isDocumentNode() const 1426 inline bool Node::isDocumentNode() const
1428 { 1427 {
1429 return this == document(); 1428 return this == document();
1430 } 1429 }
1431 1430
1432 Node* eventTargetNodeForDocument(Document*); 1431 Node* eventTargetNodeForDocument(Document*);
1433 1432
1434 } // namespace WebCore 1433 } // namespace WebCore
1435 1434
1436 #endif // Document_h 1435 #endif // Document_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/xpath/xpath-detached-import-assert-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698