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

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

Issue 365673002: Pass a struct to ContainerNode::childrenChanged() instead of separate arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove dead code 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 | Annotate | Revision Log
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 FormControlState HTMLTextAreaElement::saveFormControlState() const 109 FormControlState HTMLTextAreaElement::saveFormControlState() const
110 { 110 {
111 return m_isDirty ? FormControlState(value()) : FormControlState(); 111 return m_isDirty ? FormControlState(value()) : FormControlState();
112 } 112 }
113 113
114 void HTMLTextAreaElement::restoreFormControlState(const FormControlState& state) 114 void HTMLTextAreaElement::restoreFormControlState(const FormControlState& state)
115 { 115 {
116 setValue(state[0]); 116 setValue(state[0]);
117 } 117 }
118 118
119 void HTMLTextAreaElement::childrenChanged(bool changedByParser, Node* beforeChan ge, Node* afterChange, int childCountDelta) 119 void HTMLTextAreaElement::childrenChanged(const ChildrenChange& change)
120 { 120 {
121 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi ldCountDelta); 121 HTMLElement::childrenChanged(change);
122 setLastChangeWasNotUserEdit(); 122 setLastChangeWasNotUserEdit();
123 if (m_isDirty) 123 if (m_isDirty)
124 setInnerEditorValue(value()); 124 setInnerEditorValue(value());
125 else 125 else
126 setNonDirtyValue(defaultValue()); 126 setNonDirtyValue(defaultValue());
127 } 127 }
128 128
129 bool HTMLTextAreaElement::isPresentationAttribute(const QualifiedName& name) con st 129 bool HTMLTextAreaElement::isPresentationAttribute(const QualifiedName& name) con st
130 { 130 {
131 if (name == alignAttr) { 131 if (name == alignAttr) {
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 { 561 {
562 return true; 562 return true;
563 } 563 }
564 564
565 bool HTMLTextAreaElement::supportsAutofocus() const 565 bool HTMLTextAreaElement::supportsAutofocus() const
566 { 566 {
567 return true; 567 return true;
568 } 568 }
569 569
570 } 570 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698