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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLengthContext.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
Index: third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp b/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
index f86e33bc17e0d63e9fd713da848aa019e29c42bb..5b265e1b6e7cc5a959b1d373185a5dda1179426d 100644
--- a/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
@@ -160,8 +160,8 @@ SVGLengthContext::SVGLengthContext(const SVGElement* context)
FloatRect SVGLengthContext::resolveRectangle(const SVGElement* context, SVGUnitTypes::SVGUnitType type, const FloatRect& viewport, const SVGLength& x, const SVGLength& y, const SVGLength& width, const SVGLength& height)
{
- ASSERT(type != SVGUnitTypes::SVG_UNIT_TYPE_UNKNOWN);
- if (type != SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE) {
+ DCHECK_NE(SVGUnitTypes::kSvgUnitTypeUnknown, type);
+ if (type != SVGUnitTypes::kSvgUnitTypeUserspaceonuse) {
const FloatSize& viewportSize = viewport.size();
return FloatRect(
convertValueFromPercentageToUserUnits(x, viewportSize) + viewport.x(),
@@ -176,8 +176,8 @@ FloatRect SVGLengthContext::resolveRectangle(const SVGElement* context, SVGUnitT
FloatPoint SVGLengthContext::resolvePoint(const SVGElement* context, SVGUnitTypes::SVGUnitType type, const SVGLength& x, const SVGLength& y)
{
- ASSERT(type != SVGUnitTypes::SVG_UNIT_TYPE_UNKNOWN);
- if (type == SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE) {
+ DCHECK_NE(SVGUnitTypes::kSvgUnitTypeUnknown, type);
+ if (type == SVGUnitTypes::kSvgUnitTypeUserspaceonuse) {
SVGLengthContext lengthContext(context);
return FloatPoint(x.value(lengthContext), y.value(lengthContext));
}
@@ -188,8 +188,8 @@ FloatPoint SVGLengthContext::resolvePoint(const SVGElement* context, SVGUnitType
float SVGLengthContext::resolveLength(const SVGElement* context, SVGUnitTypes::SVGUnitType type, const SVGLength& x)
{
- ASSERT(type != SVGUnitTypes::SVG_UNIT_TYPE_UNKNOWN);
- if (type == SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE) {
+ DCHECK_NE(SVGUnitTypes::kSvgUnitTypeUnknown, type);
+ if (type == SVGUnitTypes::kSvgUnitTypeUserspaceonuse) {
SVGLengthContext lengthContext(context);
return x.value(lengthContext);
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGGradientElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGLengthTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698