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

Side by Side Diff: Source/core/html/HTMLTextAreaElement.cpp

Issue 106503002: Let Node.textContent never throw (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/html/HTMLOutputElement.cpp ('k') | Source/core/html/forms/TextFieldInputType.cpp » ('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, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 userAgentShadowRoot()->removeChild(placeholder); 517 userAgentShadowRoot()->removeChild(placeholder);
518 return; 518 return;
519 } 519 }
520 if (!placeholder) { 520 if (!placeholder) {
521 RefPtr<HTMLDivElement> newElement = HTMLDivElement::create(document()); 521 RefPtr<HTMLDivElement> newElement = HTMLDivElement::create(document());
522 placeholder = newElement.get(); 522 placeholder = newElement.get();
523 placeholder->setPseudo(AtomicString("-webkit-input-placeholder", AtomicS tring::ConstructFromLiteral)); 523 placeholder->setPseudo(AtomicString("-webkit-input-placeholder", AtomicS tring::ConstructFromLiteral));
524 placeholder->setAttribute(idAttr, ShadowElementNames::placeholder()); 524 placeholder->setAttribute(idAttr, ShadowElementNames::placeholder());
525 userAgentShadowRoot()->insertBefore(placeholder, innerTextElement()->nex tSibling()); 525 userAgentShadowRoot()->insertBefore(placeholder, innerTextElement()->nex tSibling());
526 } 526 }
527 placeholder->setTextContent(placeholderText, ASSERT_NO_EXCEPTION); 527 placeholder->setTextContent(placeholderText);
528 } 528 }
529 529
530 bool HTMLTextAreaElement::isInteractiveContent() const 530 bool HTMLTextAreaElement::isInteractiveContent() const
531 { 531 {
532 return true; 532 return true;
533 } 533 }
534 534
535 } 535 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLOutputElement.cpp ('k') | Source/core/html/forms/TextFieldInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698