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

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

Issue 262093006: Oilpan: Make the Node hierarchy RefCountedGarbageCollected instead of TreeShared. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another build fix. Created 6 years, 7 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 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 , m_wasFocusedByMouse(false) 58 , m_wasFocusedByMouse(false)
59 { 59 {
60 setHasCustomStyleCallbacks(); 60 setHasCustomStyleCallbacks();
61 associateByParser(form); 61 associateByParser(form);
62 } 62 }
63 63
64 HTMLFormControlElement::~HTMLFormControlElement() 64 HTMLFormControlElement::~HTMLFormControlElement()
65 { 65 {
66 #if !ENABLE(OILPAN) 66 #if !ENABLE(OILPAN)
67 setForm(0); 67 setForm(0);
68 hideVisibleValidationMessage();
haraken 2014/05/06 15:59:42 tkent-san: Would you confirm that this change is O
tkent 2014/05/07 00:41:19 This line is unnecessary. One in removedFrom is e
Mads Ager (chromium) 2014/05/07 12:13:16 The question is what happens if the entire documen
tkent 2014/05/07 13:56:55 Yeah, it's right.
68 #endif 69 #endif
69 } 70 }
70 71
71 String HTMLFormControlElement::formEnctype() const 72 String HTMLFormControlElement::formEnctype() const
72 { 73 {
73 const AtomicString& formEnctypeAttr = fastGetAttribute(formenctypeAttr); 74 const AtomicString& formEnctypeAttr = fastGetAttribute(formenctypeAttr);
74 if (formEnctypeAttr.isNull()) 75 if (formEnctypeAttr.isNull())
75 return emptyString(); 76 return emptyString();
76 return FormSubmission::Attributes::parseEncodingType(formEnctypeAttr); 77 return FormSubmission::Attributes::parseEncodingType(formEnctypeAttr);
77 } 78 }
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 m_ancestorDisabledState = AncestorDisabledStateUnknown; 241 m_ancestorDisabledState = AncestorDisabledStateUnknown;
241 m_dataListAncestorState = Unknown; 242 m_dataListAncestorState = Unknown;
242 setNeedsWillValidateCheck(); 243 setNeedsWillValidateCheck();
243 HTMLElement::insertedInto(insertionPoint); 244 HTMLElement::insertedInto(insertionPoint);
244 FormAssociatedElement::insertedInto(insertionPoint); 245 FormAssociatedElement::insertedInto(insertionPoint);
245 return InsertionDone; 246 return InsertionDone;
246 } 247 }
247 248
248 void HTMLFormControlElement::removedFrom(ContainerNode* insertionPoint) 249 void HTMLFormControlElement::removedFrom(ContainerNode* insertionPoint)
249 { 250 {
251 hideVisibleValidationMessage();
250 m_validationMessage = nullptr; 252 m_validationMessage = nullptr;
251 m_ancestorDisabledState = AncestorDisabledStateUnknown; 253 m_ancestorDisabledState = AncestorDisabledStateUnknown;
252 m_dataListAncestorState = Unknown; 254 m_dataListAncestorState = Unknown;
253 HTMLElement::removedFrom(insertionPoint); 255 HTMLElement::removedFrom(insertionPoint);
254 FormAssociatedElement::removedFrom(insertionPoint); 256 FormAssociatedElement::removedFrom(insertionPoint);
255 } 257 }
256 258
257 void HTMLFormControlElement::setChangedSinceLastFormControlChangeEvent(bool chan ged) 259 void HTMLFormControlElement::setChangedSinceLastFormControlChangeEvent(bool chan ged)
258 { 260 {
259 m_wasChangedSinceLastFormControlChangeEvent = changed; 261 m_wasChangedSinceLastFormControlChangeEvent = changed;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 498
497 void HTMLFormControlElement::setFocus(bool flag) 499 void HTMLFormControlElement::setFocus(bool flag)
498 { 500 {
499 LabelableElement::setFocus(flag); 501 LabelableElement::setFocus(flag);
500 502
501 if (!flag && wasChangedSinceLastFormControlChangeEvent()) 503 if (!flag && wasChangedSinceLastFormControlChangeEvent())
502 dispatchFormControlChangeEvent(); 504 dispatchFormControlChangeEvent();
503 } 505 }
504 506
505 } // namespace Webcore 507 } // namespace Webcore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698