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

Unified Diff: Source/core/html/HTMLLegendElement.cpp

Issue 67473002: Have ElementTraversal / NodeTraversal's next() methods take a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLLabelElement.cpp ('k') | Source/core/html/HTMLMapElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLegendElement.cpp
diff --git a/Source/core/html/HTMLLegendElement.cpp b/Source/core/html/HTMLLegendElement.cpp
index 515932622ead34d0dcf065c1f2abef1ba0e1fe73..0114eb5e057fd8f0f6f8d6d8b25d9d0df3fa8511 100644
--- a/Source/core/html/HTMLLegendElement.cpp
+++ b/Source/core/html/HTMLLegendElement.cpp
@@ -59,7 +59,7 @@ HTMLFormControlElement* HTMLLegendElement::associatedControl()
// Find first form element inside the fieldset that is not a legend element.
// FIXME: Should we consider tabindex?
Element* element = fieldset;
- while ((element = ElementTraversal::next(element, fieldset))) {
+ while ((element = ElementTraversal::next(*element, fieldset))) {
if (element->isFormControlElement())
return toHTMLFormControlElement(element);
}
« no previous file with comments | « Source/core/html/HTMLLabelElement.cpp ('k') | Source/core/html/HTMLMapElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698