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

Unified Diff: Source/core/rendering/RenderButton.h

Issue 197283025: Use new is*Element() helper functions more in rendering code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/rendering/RenderBoxModelObject.cpp ('k') | Source/core/rendering/RenderButton.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderButton.h
diff --git a/Source/core/rendering/RenderButton.h b/Source/core/rendering/RenderButton.h
index 246bab6ec37b9d534ca5dc9432063ded010d0bf4..c90dd59586077b45c1cbc1dc2b6868d2f5723b6c 100644
--- a/Source/core/rendering/RenderButton.h
+++ b/Source/core/rendering/RenderButton.h
@@ -21,7 +21,7 @@
#ifndef RenderButton_h
#define RenderButton_h
-#include "HTMLNames.h"
+#include "core/html/HTMLInputElement.h"
#include "core/rendering/RenderFlexibleBox.h"
namespace WebCore {
@@ -62,7 +62,7 @@ private:
virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) OVERRIDE;
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OVERRIDE;
- virtual bool hasLineIfEmpty() const OVERRIDE { return node() && node()->hasTagName(HTMLNames::inputTag); }
+ virtual bool hasLineIfEmpty() const OVERRIDE { return isHTMLInputElement(node()); }
RenderBlock* m_inner;
};
« no previous file with comments | « Source/core/rendering/RenderBoxModelObject.cpp ('k') | Source/core/rendering/RenderButton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698