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

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

Issue 14763003: HashTraits<RefPtr<P> >::PeekType should be raw pointer for better performance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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
« no previous file with comments | « Source/core/html/HTMLAnchorElement.cpp ('k') | Source/core/html/shadow/ContentDistributor.cpp » ('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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 hasInvalidControls = true; 656 hasInvalidControls = true;
657 } 657 }
658 } 658 }
659 return hasInvalidControls; 659 return hasInvalidControls;
660 } 660 }
661 661
662 HTMLFormControlElement* HTMLFormElement::elementForAlias(const AtomicString& ali as) 662 HTMLFormControlElement* HTMLFormElement::elementForAlias(const AtomicString& ali as)
663 { 663 {
664 if (alias.isEmpty() || !m_elementAliases) 664 if (alias.isEmpty() || !m_elementAliases)
665 return 0; 665 return 0;
666 return m_elementAliases->get(alias.impl()).get(); 666 return m_elementAliases->get(alias.impl());
667 } 667 }
668 668
669 void HTMLFormElement::addElementAlias(HTMLFormControlElement* element, const Ato micString& alias) 669 void HTMLFormElement::addElementAlias(HTMLFormControlElement* element, const Ato micString& alias)
670 { 670 {
671 if (alias.isEmpty()) 671 if (alias.isEmpty())
672 return; 672 return;
673 if (!m_elementAliases) 673 if (!m_elementAliases)
674 m_elementAliases = adoptPtr(new AliasMap); 674 m_elementAliases = adoptPtr(new AliasMap);
675 m_elementAliases->set(alias.impl(), element); 675 m_elementAliases->set(alias.impl(), element);
676 } 676 }
(...skipping 25 matching lines...) Expand all
702 document()->formController()->restoreControlStateIn(*this); 702 document()->formController()->restoreControlStateIn(*this);
703 } 703 }
704 704
705 void HTMLFormElement::copyNonAttributePropertiesFromElement(const Element& sourc e) 705 void HTMLFormElement::copyNonAttributePropertiesFromElement(const Element& sourc e)
706 { 706 {
707 m_wasDemoted = static_cast<const HTMLFormElement&>(source).m_wasDemoted; 707 m_wasDemoted = static_cast<const HTMLFormElement&>(source).m_wasDemoted;
708 HTMLElement::copyNonAttributePropertiesFromElement(source); 708 HTMLElement::copyNonAttributePropertiesFromElement(source);
709 } 709 }
710 710
711 } // namespace 711 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLAnchorElement.cpp ('k') | Source/core/html/shadow/ContentDistributor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698