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

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

Issue 656723005: Use C++11 features in core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: mike's comments Created 6 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/HTMLLinkElement.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 ca26219c723125232ed100001b9aeed604f0106a..5b1305eca3a288da9e6af12593612feca50ed725 100644
--- a/Source/core/html/HTMLLegendElement.cpp
+++ b/Source/core/html/HTMLLegendElement.cpp
@@ -47,7 +47,7 @@ HTMLFormControlElement* HTMLLegendElement::associatedControl()
// Check if there's a fieldset belonging to this legend.
HTMLFieldSetElement* fieldset = Traversal<HTMLFieldSetElement>::firstAncestor(*this);
if (!fieldset)
- return 0;
+ return nullptr;
// Find first form element inside the fieldset that is not a legend element.
// FIXME: Should we consider tabindex?
@@ -77,7 +77,7 @@ HTMLFormElement* HTMLLegendElement::form() const
// form attribute on that fieldset element. Otherwise, it must return null.
ContainerNode* fieldset = parentNode();
if (!isHTMLFieldSetElement(fieldset))
- return 0;
+ return nullptr;
return toHTMLFieldSetElement(fieldset)->formOwner();
}
« no previous file with comments | « Source/core/html/HTMLLabelElement.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698