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

Unified Diff: Source/core/rendering/RenderTheme.cpp

Issue 557613002: Remove a part of type checking predicates of HTMLInputElement. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/RenderTextControlSingleLine.cpp ('k') | Source/web/ContextMenuClientImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderTheme.cpp
diff --git a/Source/core/rendering/RenderTheme.cpp b/Source/core/rendering/RenderTheme.cpp
index 6efb87b899c1fb6aebe21bfdfd345762e396a314..d15705917a7310da8153ff89a4790257ca1cd17c 100644
--- a/Source/core/rendering/RenderTheme.cpp
+++ b/Source/core/rendering/RenderTheme.cpp
@@ -822,7 +822,7 @@ void RenderTheme::paintSliderTicks(RenderObject* o, const PaintInfo& paintInfo,
return;
HTMLInputElement* input = toHTMLInputElement(node);
- if (!input->isRangeControl())
+ if (input->type() != InputTypeNames::range)
return;
HTMLDataListElement* dataList = input->dataList();
@@ -907,7 +907,7 @@ double RenderTheme::animationDurationForProgressBar(RenderProgress*) const
bool RenderTheme::shouldHaveSpinButton(HTMLInputElement* inputElement) const
{
- return inputElement->isSteppable() && !inputElement->isRangeControl();
+ return inputElement->isSteppable() && inputElement->type() != InputTypeNames::range;
}
void RenderTheme::adjustMenuListButtonStyle(RenderStyle*, Element*) const
« no previous file with comments | « Source/core/rendering/RenderTextControlSingleLine.cpp ('k') | Source/web/ContextMenuClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698