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

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

Issue 2167063002: Renamed attach() to attachLayoutTree() in comments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 } 236 }
237 237
238 void HTMLFormControlElement::attachLayoutTree(const AttachContext& context) 238 void HTMLFormControlElement::attachLayoutTree(const AttachContext& context)
239 { 239 {
240 HTMLElement::attachLayoutTree(context); 240 HTMLElement::attachLayoutTree(context);
241 241
242 if (!layoutObject()) 242 if (!layoutObject())
243 return; 243 return;
244 244
245 // The call to updateFromElement() needs to go after the call through 245 // The call to updateFromElement() needs to go after the call through
246 // to the base class's attach() because that can sometimes do a close 246 // to the base class's attachLayoutTree() because that can sometimes do a cl ose
247 // on the layoutObject. 247 // on the layoutObject.
248 layoutObject()->updateFromElement(); 248 layoutObject()->updateFromElement();
249 249
250 // FIXME: Autofocus handling should be moved to insertedInto according to 250 // FIXME: Autofocus handling should be moved to insertedInto according to
251 // the standard. 251 // the standard.
252 if (shouldAutofocusOnAttach(this)) 252 if (shouldAutofocusOnAttach(this))
253 document().setAutofocusElement(this); 253 document().setAutofocusElement(this);
254 } 254 }
255 255
256 void HTMLFormControlElement::didMoveToNewDocument(Document& oldDocument) 256 void HTMLFormControlElement::didMoveToNewDocument(Document& oldDocument)
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 dispatchFormControlChangeEvent(); 654 dispatchFormControlChangeEvent();
655 } 655 }
656 656
657 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element & source) 657 void HTMLFormControlElement::copyNonAttributePropertiesFromElement(const Element & source)
658 { 658 {
659 HTMLElement::copyNonAttributePropertiesFromElement(source); 659 HTMLElement::copyNonAttributePropertiesFromElement(source);
660 setNeedsValidityCheck(); 660 setNeedsValidityCheck();
661 } 661 }
662 662
663 } // namespace blink 663 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698