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

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

Issue 1186823007: Code cleanup in core/html/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « Source/core/html/DOMFormData.h ('k') | Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/FormAssociatedElement.cpp
diff --git a/Source/core/html/FormAssociatedElement.cpp b/Source/core/html/FormAssociatedElement.cpp
index 12177cc148c0ffd77ca5ead3834439784e7c0a70..d8257de9c9e85d802e9818f8cfce65f8279485c6 100644
--- a/Source/core/html/FormAssociatedElement.cpp
+++ b/Source/core/html/FormAssociatedElement.cpp
@@ -313,10 +313,9 @@ const HTMLElement& toHTMLElement(const FormAssociatedElement& associatedElement)
{
if (associatedElement.isFormControlElement())
return toHTMLFormControlElement(associatedElement);
- else if (associatedElement.isLabelElement())
+ if (associatedElement.isLabelElement())
return toHTMLLabelElement(associatedElement);
- else
- return toHTMLObjectElement(associatedElement);
+ return toHTMLObjectElement(associatedElement);
}
const HTMLElement* toHTMLElement(const FormAssociatedElement* associatedElement)
« no previous file with comments | « Source/core/html/DOMFormData.h ('k') | Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698