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

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

Issue 2164493002: Renamed Node::attach to Node::attachLayoutTree. (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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 return false; 228 return false;
229 if (element->document().isSandboxed(SandboxAutomaticFeatures)) { 229 if (element->document().isSandboxed(SandboxAutomaticFeatures)) {
230 // FIXME: This message should be moved off the console once a solution t o https://bugs.webkit.org/show_bug.cgi?id=103274 exists. 230 // FIXME: This message should be moved off the console once a solution t o https://bugs.webkit.org/show_bug.cgi?id=103274 exists.
231 element->document().addConsoleMessage(ConsoleMessage::create(SecurityMes sageSource, ErrorMessageLevel, "Blocked autofocusing on a form control because t he form's frame is sandboxed and the 'allow-scripts' permission is not set.")); 231 element->document().addConsoleMessage(ConsoleMessage::create(SecurityMes sageSource, ErrorMessageLevel, "Blocked autofocusing on a form control because t he form's frame is sandboxed and the 'allow-scripts' permission is not set."));
232 return false; 232 return false;
233 } 233 }
234 234
235 return true; 235 return true;
236 } 236 }
237 237
238 void HTMLFormControlElement::attach(const AttachContext& context) 238 void HTMLFormControlElement::attachLayoutTree(const AttachContext& context)
239 { 239 {
240 HTMLElement::attach(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 attach() because that can sometimes do a close
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
(...skipping 403 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

Powered by Google App Engine
This is Rietveld 408576698