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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 float spread = item.spread ? item.spread->computeLength<float>(state.css ToLengthConversionData()) : 0; 790 float spread = item.spread ? item.spread->computeLength<float>(state.css ToLengthConversionData()) : 0;
791 ShadowStyle shadowStyle = item.style && item.style->getValueID() == CSSV alueInset ? Inset : Normal; 791 ShadowStyle shadowStyle = item.style && item.style->getValueID() == CSSV alueInset ? Inset : Normal;
792 StyleColor color = StyleColor::currentColor(); 792 StyleColor color = StyleColor::currentColor();
793 if (item.color) 793 if (item.color)
794 color = convertStyleColor(state, *item.color); 794 color = convertStyleColor(state, *item.color);
795 shadows.append(ShadowData(FloatPoint(x, y), blur, spread, shadowStyle, c olor)); 795 shadows.append(ShadowData(FloatPoint(x, y), blur, spread, shadowStyle, c olor));
796 } 796 }
797 return ShadowList::adopt(shadows); 797 return ShadowList::adopt(shadows);
798 } 798 }
799 799
800 PassRefPtrWillBeRawPtr<ShapeValue> StyleBuilderConverter::convertShapeValue(Styl eResolverState& state, const CSSValue& value) 800 RawPtr<ShapeValue> StyleBuilderConverter::convertShapeValue(StyleResolverState& state, const CSSValue& value)
801 { 801 {
802 if (value.isPrimitiveValue()) { 802 if (value.isPrimitiveValue()) {
803 ASSERT(toCSSPrimitiveValue(value).getValueID() == CSSValueNone); 803 ASSERT(toCSSPrimitiveValue(value).getValueID() == CSSValueNone);
804 return nullptr; 804 return nullptr;
805 } 805 }
806 806
807 if (value.isImageValue() || value.isImageGeneratorValue() || value.isImageSe tValue()) 807 if (value.isImageValue() || value.isImageGeneratorValue() || value.isImageSe tValue())
808 return ShapeValue::createImageValue(state.styleImage(CSSPropertyShapeOut side, value)); 808 return ShapeValue::createImageValue(state.styleImage(CSSPropertyShapeOut side, value));
809 809
810 RefPtr<BasicShape> shape; 810 RefPtr<BasicShape> shape;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 977
978 PassRefPtr<StylePath> StyleBuilderConverter::convertPathOrNone(StyleResolverStat e& state, const CSSValue& value) 978 PassRefPtr<StylePath> StyleBuilderConverter::convertPathOrNone(StyleResolverStat e& state, const CSSValue& value)
979 { 979 {
980 if (value.isPathValue()) 980 if (value.isPathValue())
981 return convertPath(state, value); 981 return convertPath(state, value);
982 ASSERT(value.isPrimitiveValue() && toCSSPrimitiveValue(value).getValueID() = = CSSValueNone); 982 ASSERT(value.isPrimitiveValue() && toCSSPrimitiveValue(value).getValueID() = = CSSValueNone);
983 return nullptr; 983 return nullptr;
984 } 984 }
985 985
986 } // namespace blink 986 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698