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

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

Issue 2583233002: Migrate WTF::Vector::append() to ::push_back() [part 7 of N] (Closed)
Patch Set: Created 4 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
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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 if (isValidElement()) 508 if (isValidElement())
509 return true; 509 return true;
510 if (eventBehavior != CheckValidityDispatchInvalidEvent) 510 if (eventBehavior != CheckValidityDispatchInvalidEvent)
511 return false; 511 return false;
512 Document* originalDocument = &document(); 512 Document* originalDocument = &document();
513 DispatchEventResult dispatchResult = 513 DispatchEventResult dispatchResult =
514 dispatchEvent(Event::createCancelable(EventTypeNames::invalid)); 514 dispatchEvent(Event::createCancelable(EventTypeNames::invalid));
515 if (dispatchResult == DispatchEventResult::NotCanceled && 515 if (dispatchResult == DispatchEventResult::NotCanceled &&
516 unhandledInvalidControls && isConnected() && 516 unhandledInvalidControls && isConnected() &&
517 originalDocument == document()) 517 originalDocument == document())
518 unhandledInvalidControls->append(this); 518 unhandledInvalidControls->push_back(this);
519 return false; 519 return false;
520 } 520 }
521 521
522 void HTMLFormControlElement::showValidationMessage() { 522 void HTMLFormControlElement::showValidationMessage() {
523 scrollIntoViewIfNeeded(false); 523 scrollIntoViewIfNeeded(false);
524 focus(); 524 focus();
525 updateVisibleValidationMessage(); 525 updateVisibleValidationMessage();
526 } 526 }
527 527
528 bool HTMLFormControlElement::reportValidity() { 528 bool HTMLFormControlElement::reportValidity() {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 const Element& source) { 625 const Element& source) {
626 HTMLElement::copyNonAttributePropertiesFromElement(source); 626 HTMLElement::copyNonAttributePropertiesFromElement(source);
627 setNeedsValidityCheck(); 627 setNeedsValidityCheck();
628 } 628 }
629 629
630 void HTMLFormControlElement::associateWith(HTMLFormElement* form) { 630 void HTMLFormControlElement::associateWith(HTMLFormElement* form) {
631 associateByParser(form); 631 associateByParser(form);
632 }; 632 };
633 633
634 } // namespace blink 634 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698