Chromium Code Reviews| Index: Source/core/css/resolver/StyleBuilderCustom.cpp |
| diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp |
| old mode 100644 |
| new mode 100755 |
| index cf643f2e7eb4475c4ddf46ae115e7234c43fd73c..1eeaad5c55a886c13a12a4d685af0ab73c34ac22 |
| --- a/Source/core/css/resolver/StyleBuilderCustom.cpp |
| +++ b/Source/core/css/resolver/StyleBuilderCustom.cpp |
| @@ -564,6 +564,16 @@ void StyleBuilderFunctions::applyValueCSSPropertyVerticalAlign(StyleResolverStat |
| state.style()->setVerticalAlignLength(primitiveValue->convertToLength<FixedConversion | PercentConversion>(state.cssToLengthConversionData())); |
| } |
| +void StyleBuilderFunctions::applyValueCSSPropertyTouchAction(StyleResolverState& state, CSSValue* value) |
| +{ |
| + TouchAction action = RenderStyle::initialTouchAction(); |
| + for (CSSValueListIterator i(value); i.hasMore(); i.advance()) { |
| + CSSValue* item = i.value(); |
|
eseidel
2013/12/13 17:19:06
nit: I'm not sure the local is adding anything.
gnana
2013/12/16 08:16:26
Done.
|
| + action |= *toCSSPrimitiveValue(item); |
| + } |
| + state.style()->setTouchAction(action); |
| +} |
| + |
| static void resetEffectiveZoom(StyleResolverState& state) |
| { |
| // Reset the zoom in effect. This allows the setZoom method to accurately compute a new zoom in effect. |