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

Unified Diff: Source/WebCore/html/HTMLSelectElement.cpp

Issue 11881046: Merge 139038 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/forms/select/select-empty-optgroup-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/HTMLSelectElement.cpp
===================================================================
--- Source/WebCore/html/HTMLSelectElement.cpp (revision 139720)
+++ Source/WebCore/html/HTMLSelectElement.cpp (working copy)
@@ -747,8 +747,8 @@
// (http://www.w3.org/TR/html401/interact/forms.html#h-17.6)
if (current->hasTagName(optgroupTag)) {
m_listItems.append(current);
- if (current->firstChild()) {
- currentElement = ElementTraversal::firstWithin(current);
+ if (Element* nextElement = ElementTraversal::firstWithin(current)) {
+ currentElement = nextElement;
continue;
}
}
« no previous file with comments | « LayoutTests/fast/forms/select/select-empty-optgroup-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698