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

Unified Diff: third_party/WebKit/Source/core/html/forms/StepRange.cpp

Issue 2033323002: :in-range and :out-of-range CSS selectors should check 'have range limitations.' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: third_party/WebKit/Source/core/html/forms/StepRange.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/StepRange.cpp b/third_party/WebKit/Source/core/html/forms/StepRange.cpp
index da77af291f466a2440222a9e022600b7d75b9cb1..252ff6083e264bb9a7912b0e2ae5a45681bb170f 100644
--- a/third_party/WebKit/Source/core/html/forms/StepRange.cpp
+++ b/third_party/WebKit/Source/core/html/forms/StepRange.cpp
@@ -36,6 +36,7 @@ StepRange::StepRange()
, m_step(1)
, m_stepBase(0)
, m_hasStep(false)
+ , m_hasRangeLimitations(false)
{
}
@@ -46,16 +47,18 @@ StepRange::StepRange(const StepRange& stepRange)
, m_stepBase(stepRange.m_stepBase)
, m_stepDescription(stepRange.m_stepDescription)
, m_hasStep(stepRange.m_hasStep)
+ , m_hasRangeLimitations(stepRange.m_hasRangeLimitations)
{
}
-StepRange::StepRange(const Decimal& stepBase, const Decimal& minimum, const Decimal& maximum, const Decimal& step, const StepDescription& stepDescription)
+StepRange::StepRange(const Decimal& stepBase, const Decimal& minimum, const Decimal& maximum, bool hasRangeLimitations, const Decimal& step, const StepDescription& stepDescription)
: m_maximum(maximum)
, m_minimum(minimum)
, m_step(step.isFinite() ? step : 1)
, m_stepBase(stepBase.isFinite() ? stepBase : 1)
, m_stepDescription(stepDescription)
, m_hasStep(step.isFinite())
+ , m_hasRangeLimitations(hasRangeLimitations)
{
ASSERT(m_maximum.isFinite());
ASSERT(m_minimum.isFinite());
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/StepRange.h ('k') | third_party/WebKit/Source/core/html/forms/StepRangeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698