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

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

Issue 2697923005: Remove unnecessary override of Node#cloneNode in ShadowRoot's WebIDL (Closed)
Patch Set: updated {mac,win} global-interface-listing-expected.txt Created 3 years, 10 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, 2011, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
(...skipping 3677 matching lines...) Expand 10 before | Expand all | Expand 10 after
3688 exceptionState.throwDOMException( 3688 exceptionState.throwDOMException(
3689 HierarchyRequestError, 3689 HierarchyRequestError,
3690 String::format("Only one %s on document allowed.", 3690 String::format("Only one %s on document allowed.",
3691 numElements > 1 ? "element" : "doctype")); 3691 numElements > 1 ? "element" : "doctype"));
3692 return false; 3692 return false;
3693 } 3693 }
3694 3694
3695 return true; 3695 return true;
3696 } 3696 }
3697 3697
3698 Node* Document::cloneNode(bool deep) { 3698 Node* Document::cloneNode(bool deep, ExceptionState&) {
3699 Document* clone = cloneDocumentWithoutChildren(); 3699 Document* clone = cloneDocumentWithoutChildren();
3700 clone->cloneDataFromDocument(*this); 3700 clone->cloneDataFromDocument(*this);
3701 if (deep) 3701 if (deep)
3702 cloneChildNodes(clone); 3702 cloneChildNodes(clone);
3703 return clone; 3703 return clone;
3704 } 3704 }
3705 3705
3706 Document* Document::cloneDocumentWithoutChildren() { 3706 Document* Document::cloneDocumentWithoutChildren() {
3707 DocumentInit init(url()); 3707 DocumentInit init(url());
3708 if (isXMLDocument()) { 3708 if (isXMLDocument()) {
(...skipping 2871 matching lines...) Expand 10 before | Expand all | Expand 10 after
6580 } 6580 }
6581 6581
6582 void showLiveDocumentInstances() { 6582 void showLiveDocumentInstances() {
6583 WeakDocumentSet& set = liveDocumentSet(); 6583 WeakDocumentSet& set = liveDocumentSet();
6584 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6584 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6585 for (blink::Document* document : set) 6585 for (blink::Document* document : set)
6586 fprintf(stderr, "- Document %p URL: %s\n", document, 6586 fprintf(stderr, "- Document %p URL: %s\n", document,
6587 document->url().getString().utf8().data()); 6587 document->url().getString().utf8().data());
6588 } 6588 }
6589 #endif 6589 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/DocumentFragment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698