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

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

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 years, 9 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) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
7 * Copyright (C) 2015 Google Inc. All rights reserved. 7 * Copyright (C) 2015 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public 10 * modify it under the terms of the GNU Lesser General Public
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 return nullptr; 820 return nullptr;
821 } 821 }
822 return cssValuePool().createIdentifierValue(valueId); 822 return cssValuePool().createIdentifierValue(valueId);
823 } 823 }
824 return CSSCubicBezierTimingFunctionValue::create(bezierTimingFunctio n->x1(), bezierTimingFunction->y1(), bezierTimingFunction->x2(), bezierTimingFun ction->y2()); 824 return CSSCubicBezierTimingFunctionValue::create(bezierTimingFunctio n->x1(), bezierTimingFunction->y1(), bezierTimingFunction->x2(), bezierTimingFun ction->y2());
825 } 825 }
826 826
827 case TimingFunction::StepsFunction: 827 case TimingFunction::StepsFunction:
828 { 828 {
829 const StepsTimingFunction* stepsTimingFunction = toStepsTimingFuncti on(timingFunction); 829 const StepsTimingFunction* stepsTimingFunction = toStepsTimingFuncti on(timingFunction);
830 StepsTimingFunction::StepAtPosition position = stepsTimingFunction-> stepAtPosition(); 830 StepsTimingFunction::StepAtPosition position = stepsTimingFunction-> getStepAtPosition();
831 int steps = stepsTimingFunction->numberOfSteps(); 831 int steps = stepsTimingFunction->numberOfSteps();
832 ASSERT(position == StepsTimingFunction::Start || position == StepsTi mingFunction::End); 832 ASSERT(position == StepsTimingFunction::Start || position == StepsTi mingFunction::End);
833 833
834 if (steps > 1) 834 if (steps > 1)
835 return CSSStepsTimingFunctionValue::create(steps, position); 835 return CSSStepsTimingFunctionValue::create(steps, position);
836 CSSValueID valueId = position == StepsTimingFunction::Start ? CSSVal ueStepStart : CSSValueStepEnd; 836 CSSValueID valueId = position == StepsTimingFunction::Start ? CSSVal ueStepStart : CSSValueStepEnd;
837 return cssValuePool().createIdentifierValue(valueId); 837 return cssValuePool().createIdentifierValue(valueId);
838 } 838 }
839 839
840 default: 840 default:
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 filterValue->append(cssValuePool().createValue(toBasicComponentTrans ferFilterOperation(filterOperation)->amount(), CSSPrimitiveValue::UnitType::Numb er)); 1248 filterValue->append(cssValuePool().createValue(toBasicComponentTrans ferFilterOperation(filterOperation)->amount(), CSSPrimitiveValue::UnitType::Numb er));
1249 break; 1249 break;
1250 case FilterOperation::BLUR: 1250 case FilterOperation::BLUR:
1251 filterValue = CSSFunctionValue::create(CSSValueBlur); 1251 filterValue = CSSFunctionValue::create(CSSValueBlur);
1252 filterValue->append(zoomAdjustedPixelValue(toBlurFilterOperation(fil terOperation)->stdDeviation().value(), style)); 1252 filterValue->append(zoomAdjustedPixelValue(toBlurFilterOperation(fil terOperation)->stdDeviation().value(), style));
1253 break; 1253 break;
1254 case FilterOperation::DROP_SHADOW: { 1254 case FilterOperation::DROP_SHADOW: {
1255 DropShadowFilterOperation* dropShadowOperation = toDropShadowFilterO peration(filterOperation); 1255 DropShadowFilterOperation* dropShadowOperation = toDropShadowFilterO peration(filterOperation);
1256 filterValue = CSSFunctionValue::create(CSSValueDropShadow); 1256 filterValue = CSSFunctionValue::create(CSSValueDropShadow);
1257 // We want our computed style to look like that of a text shadow (ha s neither spread nor inset style). 1257 // We want our computed style to look like that of a text shadow (ha s neither spread nor inset style).
1258 ShadowData shadow(dropShadowOperation->location(), dropShadowOperati on->stdDeviation(), 0, Normal, StyleColor(dropShadowOperation->color())); 1258 ShadowData shadow(dropShadowOperation->location(), dropShadowOperati on->stdDeviation(), 0, Normal, StyleColor(dropShadowOperation->getColor()));
1259 filterValue->append(valueForShadowData(shadow, style, false)); 1259 filterValue->append(valueForShadowData(shadow, style, false));
1260 break; 1260 break;
1261 } 1261 }
1262 default: 1262 default:
1263 ASSERT_NOT_REACHED(); 1263 ASSERT_NOT_REACHED();
1264 break; 1264 break;
1265 } 1265 }
1266 list->append(filterValue.release()); 1266 list->append(filterValue.release());
1267 } 1267 }
1268 1268
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2081 return cssValuePool().createValue(style.wordBreak()); 2081 return cssValuePool().createValue(style.wordBreak());
2082 case CSSPropertyWordSpacing: 2082 case CSSPropertyWordSpacing:
2083 return zoomAdjustedPixelValue(style.wordSpacing(), style); 2083 return zoomAdjustedPixelValue(style.wordSpacing(), style);
2084 case CSSPropertyWordWrap: 2084 case CSSPropertyWordWrap:
2085 return cssValuePool().createValue(style.overflowWrap()); 2085 return cssValuePool().createValue(style.overflowWrap());
2086 case CSSPropertyWebkitLineBreak: 2086 case CSSPropertyWebkitLineBreak:
2087 return cssValuePool().createValue(style.getLineBreak()); 2087 return cssValuePool().createValue(style.getLineBreak());
2088 case CSSPropertyResize: 2088 case CSSPropertyResize:
2089 return cssValuePool().createValue(style.resize()); 2089 return cssValuePool().createValue(style.resize());
2090 case CSSPropertyFontKerning: 2090 case CSSPropertyFontKerning:
2091 return cssValuePool().createValue(style.fontDescription().kerning()); 2091 return cssValuePool().createValue(style.fontDescription().getKerning());
2092 case CSSPropertyWebkitFontSmoothing: 2092 case CSSPropertyWebkitFontSmoothing:
2093 return cssValuePool().createValue(style.fontDescription().fontSmoothing( )); 2093 return cssValuePool().createValue(style.fontDescription().fontSmoothing( ));
2094 case CSSPropertyFontVariantLigatures: { 2094 case CSSPropertyFontVariantLigatures: {
2095 FontDescription::LigaturesState commonLigaturesState = style.fontDescrip tion().commonLigaturesState(); 2095 FontDescription::LigaturesState commonLigaturesState = style.fontDescrip tion().commonLigaturesState();
2096 FontDescription::LigaturesState discretionaryLigaturesState = style.font Description().discretionaryLigaturesState(); 2096 FontDescription::LigaturesState discretionaryLigaturesState = style.font Description().discretionaryLigaturesState();
2097 FontDescription::LigaturesState historicalLigaturesState = style.fontDes cription().historicalLigaturesState(); 2097 FontDescription::LigaturesState historicalLigaturesState = style.fontDes cription().historicalLigaturesState();
2098 FontDescription::LigaturesState contextualLigaturesState = style.fontDes cription().contextualLigaturesState(); 2098 FontDescription::LigaturesState contextualLigaturesState = style.fontDes cription().contextualLigaturesState();
2099 if (commonLigaturesState == FontDescription::NormalLigaturesState && dis cretionaryLigaturesState == FontDescription::NormalLigaturesState 2099 if (commonLigaturesState == FontDescription::NormalLigaturesState && dis cretionaryLigaturesState == FontDescription::NormalLigaturesState
2100 && historicalLigaturesState == FontDescription::NormalLigaturesState && contextualLigaturesState == FontDescription::NormalLigaturesState) 2100 && historicalLigaturesState == FontDescription::NormalLigaturesState && contextualLigaturesState == FontDescription::NormalLigaturesState)
2101 return cssValuePool().createIdentifierValue(CSSValueNormal); 2101 return cssValuePool().createIdentifierValue(CSSValueNormal);
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
2750 case CSSPropertyAll: 2750 case CSSPropertyAll:
2751 return nullptr; 2751 return nullptr;
2752 default: 2752 default:
2753 break; 2753 break;
2754 } 2754 }
2755 ASSERT_NOT_REACHED(); 2755 ASSERT_NOT_REACHED();
2756 return nullptr; 2756 return nullptr;
2757 } 2757 }
2758 2758
2759 } // namespace blink 2759 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698