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

Side by Side Diff: Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 1293793007: Unprefix min-content, max-content, fit-content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comment Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * * Redistributions of source code must retain the above copyright 4 * * Redistributions of source code must retain the above copyright
5 * notice, this list of conditions and the following disclaimer. 5 * notice, this list of conditions and the following disclaimer.
6 * * Redistributions in binary form must reproduce the above 6 * * Redistributions in binary form must reproduce the above
7 * copyright notice, this list of conditions and the following disclaimer 7 * copyright notice, this list of conditions and the following disclaimer
8 * in the documentation and/or other materials provided with the 8 * in the documentation and/or other materials provided with the
9 * distribution. 9 * distribution.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 return Length(MinIntrinsic); 554 return Length(MinIntrinsic);
555 case CSSValueMinContent: 555 case CSSValueMinContent:
556 case CSSValueWebkitMinContent: 556 case CSSValueWebkitMinContent:
557 return Length(MinContent); 557 return Length(MinContent);
558 case CSSValueMaxContent: 558 case CSSValueMaxContent:
559 case CSSValueWebkitMaxContent: 559 case CSSValueWebkitMaxContent:
560 return Length(MaxContent); 560 return Length(MaxContent);
561 case CSSValueWebkitFillAvailable: 561 case CSSValueWebkitFillAvailable:
562 return Length(FillAvailable); 562 return Length(FillAvailable);
563 case CSSValueWebkitFitContent: 563 case CSSValueWebkitFitContent:
564 case CSSValueFitContent:
564 return Length(FitContent); 565 return Length(FitContent);
565 case CSSValueAuto: 566 case CSSValueAuto:
566 return Length(Auto); 567 return Length(Auto);
567 default: 568 default:
568 ASSERT_NOT_REACHED(); 569 ASSERT_NOT_REACHED();
569 return Length(); 570 return Length();
570 } 571 }
571 } 572 }
572 573
573 Length StyleBuilderConverter::convertLengthMaxSizing(StyleResolverState& state, CSSValue* value) 574 Length StyleBuilderConverter::convertLengthMaxSizing(StyleResolverState& state, CSSValue* value)
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 return ScaleTransformOperation::create(sx, sy, sz, TransformOperation::Scale 3D); 957 return ScaleTransformOperation::create(sx, sy, sz, TransformOperation::Scale 3D);
957 } 958 }
958 959
959 RespectImageOrientationEnum StyleBuilderConverter::convertImageOrientation(Style ResolverState& state, CSSValue* value) 960 RespectImageOrientationEnum StyleBuilderConverter::convertImageOrientation(Style ResolverState& state, CSSValue* value)
960 { 961 {
961 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 962 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
962 return primitiveValue->getValueID() == CSSValueFromImage ? RespectImageOrien tation : DoNotRespectImageOrientation; 963 return primitiveValue->getValueID() == CSSValueFromImage ? RespectImageOrien tation : DoNotRespectImageOrientation;
963 } 964 }
964 965
965 } // namespace blink 966 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698