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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_units.h

Issue 2605093002: Negative margin lengths are legal (Closed)
Patch Set: Reinstate size checks Created 3 years, 12 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_units.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_units.h b/third_party/WebKit/Source/core/layout/ng/ng_units.h
index 235bf802d0040eec8001b2adecbef7c87dfcccdb..6c768d7916b05a5f7799712020bc1155250ed21e 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_units.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_units.h
@@ -348,8 +348,6 @@ struct CORE_EXPORT NGStaticPosition {
LayoutUnit margin_end) const {
DCHECK_GE(container_size, LayoutUnit());
DCHECK_GE(length, LayoutUnit());
- DCHECK_GE(margin_start, LayoutUnit());
- DCHECK_GE(margin_end, LayoutUnit());
if (position_matches)
return position;
else
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698