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

Unified Diff: Source/core/html/HTMLMapElement.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/HTMLLegendElement.cpp ('k') | Source/core/html/HTMLNameCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMapElement.cpp
diff --git a/Source/core/html/HTMLMapElement.cpp b/Source/core/html/HTMLMapElement.cpp
index bdded68b16b8589766084c0b9c8af886aec055fd..c3123136b1e4b19e82f802b3dd630684dd329bfb 100644
--- a/Source/core/html/HTMLMapElement.cpp
+++ b/Source/core/html/HTMLMapElement.cpp
@@ -61,7 +61,7 @@ bool HTMLMapElement::mapMouseEvent(LayoutPoint location, const LayoutSize& size,
{
HTMLAreaElement* defaultArea = 0;
Element* element = this;
- while ((element = ElementTraversal::next(element, this))) {
+ while ((element = ElementTraversal::next(*element, this))) {
if (isHTMLAreaElement(element)) {
HTMLAreaElement* areaElt = toHTMLAreaElement(element);
if (areaElt->isDefault()) {
« no previous file with comments | « Source/core/html/HTMLLegendElement.cpp ('k') | Source/core/html/HTMLNameCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698