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

Unified Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h

Issue 2915773002: Reland of [css-align] Don't resolve 'auto' values for computed style. (Closed)
Patch Set: Applied suggested changes Created 3 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/css/CSSPrimitiveValueMappings.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
index ef50851e579e859a84e8da399bba326ddd370bbd..9abdab9b59d9a5e3ac5123d03908fa08d4df9f0c 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -2954,9 +2954,7 @@ inline CSSIdentifierValue::CSSIdentifierValue(ItemPosition item_position)
: CSSValue(kIdentifierClass) {
switch (item_position) {
case kItemPositionAuto:
- // The 'auto' values might have been already resolved.
- NOTREACHED();
- value_id_ = CSSValueNormal;
+ value_id_ = CSSValueAuto;
break;
case kItemPositionNormal:
value_id_ = CSSValueNormal;

Powered by Google App Engine
This is Rietveld 408576698