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

Unified Diff: Source/core/svg/SVGEnumeration.cpp

Issue 447193002: Add support for additional blend modes to SVGFEBlendElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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/svg/SVGEnumeration.h ('k') | Source/core/svg/SVGFEBlendElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGEnumeration.cpp
diff --git a/Source/core/svg/SVGEnumeration.cpp b/Source/core/svg/SVGEnumeration.cpp
index 2838406004c5eb33eed9daec3ca61bda19050b96..88f7d93a86c97b47a89dc0db9d482f4708b3db8d 100644
--- a/Source/core/svg/SVGEnumeration.cpp
+++ b/Source/core/svg/SVGEnumeration.cpp
@@ -66,7 +66,7 @@ String SVGEnumerationBase::valueAsString() const
return it->second;
}
- ASSERT(m_value < maxEnumValue());
+ ASSERT(m_value < maxInternalEnumValue());
return emptyString();
}
@@ -77,8 +77,8 @@ void SVGEnumerationBase::setValue(unsigned short value, ExceptionState& exceptio
return;
}
- if (value > maxEnumValue()) {
- exceptionState.throwTypeError("The enumeration value provided (" + String::number(value) + ") is larger than the largest allowed value (" + String::number(maxEnumValue()) + ").");
+ if (value > maxExposedEnumValue()) {
+ exceptionState.throwTypeError("The enumeration value provided (" + String::number(value) + ") is larger than the largest allowed value (" + String::number(maxExposedEnumValue()) + ").");
return;
}
« no previous file with comments | « Source/core/svg/SVGEnumeration.h ('k') | Source/core/svg/SVGFEBlendElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698