本文整理汇总了C++中ConversionCheckers::push_back方法的典型用法代码示例。如果您正苦于以下问题:C++ ConversionCheckers::push_back方法的具体用法?C++ ConversionCheckers::push_back怎么用?C++ ConversionCheckers::push_back使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConversionCheckers
的用法示例。
在下文中一共展示了ConversionCheckers::push_back方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: maybeConvertSingle
InterpolationValue CSSInterpolationType::maybeConvertSingle(
const PropertySpecificKeyframe& keyframe,
const InterpolationEnvironment& environment,
const InterpolationValue& underlying,
ConversionCheckers& conversionCheckers) const {
const CSSValue* value = toCSSPropertySpecificKeyframe(keyframe).value();
if (!value)
return maybeConvertNeutral(underlying, conversionCheckers);
if (value->isVariableReferenceValue() ||
value->isPendingSubstitutionValue()) {
bool omitAnimationTainted = false;
const CSSValue* resolvedValue =
CSSVariableResolver::resolveVariableReferences(
environment.state(), cssProperty(), *value, omitAnimationTainted);
conversionCheckers.push_back(
ResolvedVariableChecker::create(cssProperty(), value, resolvedValue));
value = resolvedValue;
}
if (value->isInitialValue() ||
(value->isUnsetValue() &&
!CSSPropertyMetadata::isInheritedProperty(cssProperty())))
return maybeConvertInitial(environment.state(), conversionCheckers);
if (value->isInheritedValue() ||
(value->isUnsetValue() &&
CSSPropertyMetadata::isInheritedProperty(cssProperty())))
return maybeConvertInherit(environment.state(), conversionCheckers);
return maybeConvertValue(*value, environment.state(), conversionCheckers);
}
示例2: maybeConvertInherit
InterpolationValue CSSRotateInterpolationType::maybeConvertInherit(
const StyleResolverState& state,
ConversionCheckers& conversionCheckers) const {
Rotation inheritedRotation = getRotation(*state.parentStyle());
conversionCheckers.push_back(
InheritedRotationChecker::create(inheritedRotation));
return convertRotation(inheritedRotation);
}
示例3: maybeConvertNeutral
InterpolationValue CSSFilterListInterpolationType::maybeConvertNeutral(
const InterpolationValue& underlying,
ConversionCheckers& conversionCheckers) const {
// const_cast for taking refs.
NonInterpolableList& nonInterpolableList = const_cast<NonInterpolableList&>(
toNonInterpolableList(*underlying.nonInterpolableValue));
conversionCheckers.push_back(
UnderlyingFilterListChecker::create(&nonInterpolableList));
return InterpolationValue(underlying.interpolableValue->cloneAndZero(),
&nonInterpolableList);
}