| Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| index c3b28edacb650bac880d9eb4cb8ec91bafe68ee0..e51ccac6482ac12b479821aebca9bbcf9e7c7986 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| @@ -223,6 +223,36 @@ ItemPosition ComputedStyle::resolveJustification(const ComputedStyle& parentStyl
|
| return childStyle.justifySelfPosition();
|
| }
|
|
|
| +static inline ContentPosition resolvedContentAlignmentPosition(const StyleContentAlignmentData& value, const StyleContentAlignmentData& normalValueBehavior)
|
| +{
|
| + return (value.position() == ContentPositionNormal && value.distribution() == ContentDistributionDefault) ? normalValueBehavior.position() : value.position();
|
| +}
|
| +
|
| +static inline ContentDistributionType resolvedContentAlignmentDistribution(const StyleContentAlignmentData& value, const StyleContentAlignmentData& normalValueBehavior)
|
| +{
|
| + return (value.position() == ContentPositionNormal && value.distribution() == ContentDistributionDefault) ? normalValueBehavior.distribution() : value.distribution();
|
| +}
|
| +
|
| +ContentPosition ComputedStyle::resolvedJustifyContentPosition(const StyleContentAlignmentData& normalValueBehavior) const
|
| +{
|
| + return resolvedContentAlignmentPosition(justifyContent(), normalValueBehavior);
|
| +}
|
| +
|
| +ContentDistributionType ComputedStyle::resolvedJustifyContentDistribution(const StyleContentAlignmentData& normalValueBehavior) const
|
| +{
|
| + return resolvedContentAlignmentDistribution(justifyContent(), normalValueBehavior);
|
| +}
|
| +
|
| +ContentPosition ComputedStyle::resolvedAlignContentPosition(const StyleContentAlignmentData& normalValueBehavior) const
|
| +{
|
| + return resolvedContentAlignmentPosition(alignContent(), normalValueBehavior);
|
| +}
|
| +
|
| +ContentDistributionType ComputedStyle::resolvedAlignContentDistribution(const StyleContentAlignmentData& normalValueBehavior) const
|
| +{
|
| + return resolvedContentAlignmentDistribution(alignContent(), normalValueBehavior);
|
| +}
|
| +
|
| void ComputedStyle::inheritFrom(const ComputedStyle& inheritParent, IsAtShadowBoundary isAtShadowBoundary)
|
| {
|
| if (isAtShadowBoundary == AtShadowBoundary) {
|
|
|