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

Unified Diff: Source/core/rendering/style/BasicShapes.h

Issue 108653006: Assert that convertToLength succeeds instead of returning Length(Undefined) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 7 years 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/css/resolver/TransformBuilder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/BasicShapes.h
diff --git a/Source/core/rendering/style/BasicShapes.h b/Source/core/rendering/style/BasicShapes.h
index b8735a82095938079632de526a3e297e09bddebe..a59e2b9e20cb47e26d3edd9da5d77cb5099578eb 100644
--- a/Source/core/rendering/style/BasicShapes.h
+++ b/Source/core/rendering/style/BasicShapes.h
@@ -81,12 +81,10 @@ public:
void setHeight(Length height) { m_height = height; }
void setCornerRadiusX(Length radiusX)
{
- ASSERT(!radiusX.isUndefined());
m_cornerRadiusX = radiusX;
}
void setCornerRadiusY(Length radiusY)
{
- ASSERT(!radiusY.isUndefined());
m_cornerRadiusY = radiusY;
}
@@ -199,12 +197,10 @@ public:
void setLeft(Length left) { m_left = left; }
void setCornerRadiusX(Length radiusX)
{
- ASSERT(!radiusX.isUndefined());
m_cornerRadiusX = radiusX;
}
void setCornerRadiusY(Length radiusY)
{
- ASSERT(!radiusY.isUndefined());
m_cornerRadiusY = radiusY;
}
« no previous file with comments | « Source/core/css/resolver/TransformBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698