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

Side by Side Diff: third_party/WebKit/Source/core/dom/Text.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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
5 * reserved. 5 * 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 } 226 }
227 227
228 String Text::nodeName() const { 228 String Text::nodeName() const {
229 return "#text"; 229 return "#text";
230 } 230 }
231 231
232 Node::NodeType Text::getNodeType() const { 232 Node::NodeType Text::getNodeType() const {
233 return kTextNode; 233 return kTextNode;
234 } 234 }
235 235
236 Node* Text::cloneNode(bool /*deep*/) { 236 Node* Text::cloneNode(bool /*deep*/, ExceptionState&) {
237 return cloneWithData(data()); 237 return cloneWithData(data());
238 } 238 }
239 239
240 static inline bool canHaveWhitespaceChildren(const LayoutObject& parent) { 240 static inline bool canHaveWhitespaceChildren(const LayoutObject& parent) {
241 // <button> and <fieldset> should allow whitespace even though 241 // <button> and <fieldset> should allow whitespace even though
242 // LayoutFlexibleBox doesn't. 242 // LayoutFlexibleBox doesn't.
243 if (parent.isLayoutButton() || parent.isFieldset()) 243 if (parent.isLayoutButton() || parent.isFieldset())
244 return true; 244 return true;
245 245
246 if (parent.isTable() || parent.isTableRow() || parent.isTableSection() || 246 if (parent.isTable() || parent.isTableRow() || parent.isTableSection() ||
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 451
452 Text* Text::cloneWithData(const String& data) { 452 Text* Text::cloneWithData(const String& data) {
453 return create(document(), data); 453 return create(document(), data);
454 } 454 }
455 455
456 DEFINE_TRACE(Text) { 456 DEFINE_TRACE(Text) {
457 CharacterData::trace(visitor); 457 CharacterData::trace(visitor);
458 } 458 }
459 459
460 } // namespace blink 460 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Text.h ('k') | third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698