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

Side by Side Diff: sky/engine/core/dom/ContainerNode.cpp

Issue 1215103007: Remove remaining HTML elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/css/resolver/ScopedStyleResolver.cpp ('k') | sky/engine/core/dom/Document.h » ('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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 551 }
552 552
553 return newChild; 553 return newChild;
554 } 554 }
555 555
556 void ContainerNode::parserAppendChild(PassRefPtr<Node> newChild) 556 void ContainerNode::parserAppendChild(PassRefPtr<Node> newChild)
557 { 557 {
558 ASSERT(newChild); 558 ASSERT(newChild);
559 ASSERT(!newChild->parentNode()); // Use appendChild if you need to handle re parenting (and want DOM mutation events). 559 ASSERT(!newChild->parentNode()); // Use appendChild if you need to handle re parenting (and want DOM mutation events).
560 ASSERT(!newChild->isDocumentFragment()); 560 ASSERT(!newChild->isDocumentFragment());
561 ASSERT(!isHTMLTemplateElement(this));
562 561
563 RefPtr<Node> protect(this); 562 RefPtr<Node> protect(this);
564 563
565 if (document() != newChild->document()) 564 if (document() != newChild->document())
566 document().adoptNode(newChild.get(), ASSERT_NO_EXCEPTION); 565 document().adoptNode(newChild.get(), ASSERT_NO_EXCEPTION);
567 566
568 { 567 {
569 EventDispatchForbiddenScope assertNoEventDispatch; 568 EventDispatchForbiddenScope assertNoEventDispatch;
570 ScriptForbiddenScope forbidScript; 569 ScriptForbiddenScope forbidScript;
571 570
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 return true; 996 return true;
998 997
999 if (node->isElementNode() && toElement(node)->shadow()) 998 if (node->isElementNode() && toElement(node)->shadow())
1000 return true; 999 return true;
1001 1000
1002 return false; 1001 return false;
1003 } 1002 }
1004 #endif 1003 #endif
1005 1004
1006 } // namespace blink 1005 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/ScopedStyleResolver.cpp ('k') | sky/engine/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698