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

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

Issue 202893002: Replace elementHasLegalLinkAttribute() helper with virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take tkent's feedback into consideration Created 6 years, 9 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
« no previous file with comments | « Source/core/html/HTMLFormElement.h ('k') | Source/core/html/HTMLFrameElementBase.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2009 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 m_associatedElementsAreDirty = true; 505 m_associatedElementsAreDirty = true;
506 m_associatedElements.clear(); 506 m_associatedElements.clear();
507 removeFromPastNamesMap(toHTMLElement(e)); 507 removeFromPastNamesMap(toHTMLElement(e));
508 } 508 }
509 509
510 bool HTMLFormElement::isURLAttribute(const Attribute& attribute) const 510 bool HTMLFormElement::isURLAttribute(const Attribute& attribute) const
511 { 511 {
512 return attribute.name() == actionAttr || HTMLElement::isURLAttribute(attribu te); 512 return attribute.name() == actionAttr || HTMLElement::isURLAttribute(attribu te);
513 } 513 }
514 514
515 bool HTMLFormElement::hasLegalLinkAttribute(const QualifiedName& name) const
516 {
517 return name == actionAttr || HTMLElement::hasLegalLinkAttribute(name);
518 }
519
515 void HTMLFormElement::associate(HTMLImageElement& e) 520 void HTMLFormElement::associate(HTMLImageElement& e)
516 { 521 {
517 m_imageElementsAreDirty = true; 522 m_imageElementsAreDirty = true;
518 m_imageElements.clear(); 523 m_imageElements.clear();
519 } 524 }
520 525
521 void HTMLFormElement::disassociate(HTMLImageElement& e) 526 void HTMLFormElement::disassociate(HTMLImageElement& e)
522 { 527 {
523 m_imageElementsAreDirty = true; 528 m_imageElementsAreDirty = true;
524 m_imageElements.clear(); 529 m_imageElements.clear();
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 } 788 }
784 789
785 void HTMLFormElement::setDemoted(bool demoted) 790 void HTMLFormElement::setDemoted(bool demoted)
786 { 791 {
787 if (demoted) 792 if (demoted)
788 UseCounter::count(document(), UseCounter::DemotedFormElement); 793 UseCounter::count(document(), UseCounter::DemotedFormElement);
789 m_wasDemoted = demoted; 794 m_wasDemoted = demoted;
790 } 795 }
791 796
792 } // namespace 797 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormElement.h ('k') | Source/core/html/HTMLFrameElementBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698