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

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

Issue 1316153003: Removed m_isQuirkValue and used CSSPrimitiveValue::QuirkyEms instead (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: g clt Created 5 years, 3 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
« 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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 } 722 }
723 } 723 }
724 724
725 return PaintOrderNormal; 725 return PaintOrderNormal;
726 } 726 }
727 727
728 Length StyleBuilderConverter::convertQuirkyLength(StyleResolverState& state, CSS Value* value) 728 Length StyleBuilderConverter::convertQuirkyLength(StyleResolverState& state, CSS Value* value)
729 { 729 {
730 Length length = convertLengthOrAuto(state, value); 730 Length length = convertLengthOrAuto(state, value);
731 // This is only for margins which use __qem 731 // This is only for margins which use __qem
732 length.setQuirk(toCSSPrimitiveValue(value)->isQuirkValue()); 732 length.setQuirk(toCSSPrimitiveValue(value)->isQuirkyEms());
733 return length; 733 return length;
734 } 734 }
735 735
736 PassRefPtr<QuotesData> StyleBuilderConverter::convertQuotes(StyleResolverState&, CSSValue* value) 736 PassRefPtr<QuotesData> StyleBuilderConverter::convertQuotes(StyleResolverState&, CSSValue* value)
737 { 737 {
738 if (value->isValueList()) { 738 if (value->isValueList()) {
739 CSSValueList* list = toCSSValueList(value); 739 CSSValueList* list = toCSSValueList(value);
740 RefPtr<QuotesData> quotes = QuotesData::create(); 740 RefPtr<QuotesData> quotes = QuotesData::create();
741 for (size_t i = 0; i < list->length(); i += 2) { 741 for (size_t i = 0; i < list->length(); i += 2) {
742 CSSValue* first = list->item(i); 742 CSSValue* first = list->item(i);
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 return ScaleTransformOperation::create(sx, sy, sz, TransformOperation::Scale 3D); 958 return ScaleTransformOperation::create(sx, sy, sz, TransformOperation::Scale 3D);
959 } 959 }
960 960
961 RespectImageOrientationEnum StyleBuilderConverter::convertImageOrientation(Style ResolverState& state, CSSValue* value) 961 RespectImageOrientationEnum StyleBuilderConverter::convertImageOrientation(Style ResolverState& state, CSSValue* value)
962 { 962 {
963 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 963 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
964 return primitiveValue->getValueID() == CSSValueFromImage ? RespectImageOrien tation : DoNotRespectImageOrientation; 964 return primitiveValue->getValueID() == CSSValueFromImage ? RespectImageOrien tation : DoNotRespectImageOrientation;
965 } 965 }
966 966
967 } // namespace blink 967 } // 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