StyleRareNonInheritedData::StyleRareNonInheritedData()
: opacity(RenderStyle::initialOpacity())
- , m_aspectRatioDenominator(RenderStyle::initialAspectRatioDenominator())
- , m_aspectRatioNumerator(RenderStyle::initialAspectRatioNumerator())
, m_perspective(RenderStyle::initialPerspective())
- , m_perspectiveOriginX(RenderStyle::initialPerspectiveOriginX())
- , m_perspectiveOriginY(RenderStyle::initialPerspectiveOriginY())
+ , m_perspectiveOrigin(RenderStyle::initialPerspectiveOrigin())
, lineClamp(RenderStyle::initialLineClamp())
, m_draggableRegionMode(DraggableRegionNone)
, m_mask(MaskFillLayer, true)
, m_alignSelf(RenderStyle::initialAlignSelf())
, m_alignSelfOverflowAlignment(RenderStyle::initialAlignSelfOverflowAlignment())
, m_justifyContent(RenderStyle::initialJustifyContent())
+ , m_justifyContentDistribution(RenderStyle::initialJustifyContentDistribution())
+ , m_justifyContentOverflowAlignment(RenderStyle::initialJustifyContentOverflowAlignment())
, userDrag(RenderStyle::initialUserDrag())
, textOverflow(RenderStyle::initialTextOverflow())
, marginBeforeCollapse(MCOLLAPSE)
, marginAfterCollapse(MCOLLAPSE)
, m_appearance(RenderStyle::initialAppearance())
- , m_borderFit(RenderStyle::initialBorderFit())
, m_textCombine(RenderStyle::initialTextCombine())
, m_textDecorationStyle(RenderStyle::initialTextDecorationStyle())
, m_wrapFlow(RenderStyle::initialWrapFlow())
, m_runningOpacityAnimationOnCompositor(false)
, m_runningTransformAnimationOnCompositor(false)
, m_runningFilterAnimationOnCompositor(false)
- , m_hasAspectRatio(false)
, m_effectiveBlendMode(RenderStyle::initialBlendMode())
, m_touchAction(RenderStyle::initialTouchAction())
, m_objectFit(RenderStyle::initialObjectFit())
, m_scrollBehavior(RenderStyle::initialScrollBehavior())
, m_requiresAcceleratedCompositingForExternalReasons(false)
, m_hasInlineTransform(false)
+ , m_resize(RenderStyle::initialResize())
{
m_maskBoxImage.setMaskDefaults();
}
StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInheritedData& o)
: RefCounted<StyleRareNonInheritedData>()
, opacity(o.opacity)
- , m_aspectRatioDenominator(o.m_aspectRatioDenominator)
- , m_aspectRatioNumerator(o.m_aspectRatioNumerator)
, m_perspective(o.m_perspective)
- , m_perspectiveOriginX(o.m_perspectiveOriginX)
- , m_perspectiveOriginY(o.m_perspectiveOriginY)
+ , m_perspectiveOrigin(o.m_perspectiveOrigin)
, lineClamp(o.lineClamp)
, m_draggableRegionMode(o.m_draggableRegionMode)
, m_deprecatedFlexibleBox(o.m_deprecatedFlexibleBox)
, m_flexibleBox(o.m_flexibleBox)
- , m_marquee(o.m_marquee)
, m_multiCol(o.m_multiCol)
, m_transform(o.m_transform)
, m_willChange(o.m_willChange)
, m_alignSelf(o.m_alignSelf)
, m_alignSelfOverflowAlignment(o.m_alignSelfOverflowAlignment)
, m_justifyContent(o.m_justifyContent)
+ , m_justifyContentDistribution(o.m_justifyContentDistribution)
+ , m_justifyContentOverflowAlignment(o.m_justifyContentOverflowAlignment)
, userDrag(o.userDrag)
, textOverflow(o.textOverflow)
, marginBeforeCollapse(o.marginBeforeCollapse)
, marginAfterCollapse(o.marginAfterCollapse)
, m_appearance(o.m_appearance)
- , m_borderFit(o.m_borderFit)
, m_textCombine(o.m_textCombine)
, m_textDecorationStyle(o.m_textDecorationStyle)
, m_wrapFlow(o.m_wrapFlow)
, m_runningOpacityAnimationOnCompositor(o.m_runningOpacityAnimationOnCompositor)
, m_runningTransformAnimationOnCompositor(o.m_runningTransformAnimationOnCompositor)
, m_runningFilterAnimationOnCompositor(o.m_runningFilterAnimationOnCompositor)
- , m_hasAspectRatio(o.m_hasAspectRatio)
, m_effectiveBlendMode(o.m_effectiveBlendMode)
, m_touchAction(o.m_touchAction)
, m_objectFit(o.m_objectFit)
, m_scrollBehavior(o.m_scrollBehavior)
, m_requiresAcceleratedCompositingForExternalReasons(o.m_requiresAcceleratedCompositingForExternalReasons)
, m_hasInlineTransform(o.m_hasInlineTransform)
+ , m_resize(o.m_resize)
{
}
bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) const
{
return opacity == o.opacity
- && m_aspectRatioDenominator == o.m_aspectRatioDenominator
- && m_aspectRatioNumerator == o.m_aspectRatioNumerator
&& m_perspective == o.m_perspective
- && m_perspectiveOriginX == o.m_perspectiveOriginX
- && m_perspectiveOriginY == o.m_perspectiveOriginY
+ && m_perspectiveOrigin == o.m_perspectiveOrigin
&& lineClamp == o.lineClamp
&& m_draggableRegionMode == o.m_draggableRegionMode
&& m_deprecatedFlexibleBox == o.m_deprecatedFlexibleBox
&& m_flexibleBox == o.m_flexibleBox
- && m_marquee == o.m_marquee
&& m_multiCol == o.m_multiCol
&& m_transform == o.m_transform
&& m_willChange == o.m_willChange
&& m_mask == o.m_mask
&& m_maskBoxImage == o.m_maskBoxImage
&& m_pageSize == o.m_pageSize
- && m_shapeOutside == o.m_shapeOutside
+ && shapeOutsideDataEquivalent(o)
&& m_shapeMargin == o.m_shapeMargin
&& m_shapeImageThreshold == o.m_shapeImageThreshold
- && m_clipPath == o.m_clipPath
+ && clipPathDataEquivalent(o)
&& m_textDecorationColor == o.m_textDecorationColor
&& m_visitedLinkTextDecorationColor == o.m_visitedLinkTextDecorationColor
&& m_visitedLinkBackgroundColor == o.m_visitedLinkBackgroundColor
&& m_alignSelf == o.m_alignSelf
&& m_alignSelfOverflowAlignment == o.m_alignSelfOverflowAlignment
&& m_justifyContent == o.m_justifyContent
+ && m_justifyContentDistribution == o.m_justifyContentDistribution
+ && m_justifyContentOverflowAlignment == o.m_justifyContentOverflowAlignment
&& userDrag == o.userDrag
&& textOverflow == o.textOverflow
&& marginBeforeCollapse == o.marginBeforeCollapse
&& marginAfterCollapse == o.marginAfterCollapse
&& m_appearance == o.m_appearance
- && m_borderFit == o.m_borderFit
&& m_textCombine == o.m_textCombine
&& m_textDecorationStyle == o.m_textDecorationStyle
&& m_wrapFlow == o.m_wrapFlow
&& m_hasCurrentTransformAnimation == o.m_hasCurrentTransformAnimation
&& m_hasCurrentFilterAnimation == o.m_hasCurrentFilterAnimation
&& m_effectiveBlendMode == o.m_effectiveBlendMode
- && m_hasAspectRatio == o.m_hasAspectRatio
&& m_touchAction == o.m_touchAction
&& m_objectFit == o.m_objectFit
&& m_isolation == o.m_isolation
&& m_justifySelfOverflowAlignment == o.m_justifySelfOverflowAlignment
&& m_scrollBehavior == o.m_scrollBehavior
&& m_requiresAcceleratedCompositingForExternalReasons == o.m_requiresAcceleratedCompositingForExternalReasons
- && m_hasInlineTransform == o.m_hasInlineTransform;
+ && m_hasInlineTransform == o.m_hasInlineTransform
+ && m_resize == o.m_resize;
}
bool StyleRareNonInheritedData::contentDataEquivalent(const StyleRareNonInheritedData& o) const
return m_filter.get() && !m_filter->m_operations.isEmpty();
}
+bool StyleRareNonInheritedData::shapeOutsideDataEquivalent(const StyleRareNonInheritedData& o) const
+{
+ return dataEquivalent(m_shapeOutside, o.m_shapeOutside);
+}
+
+bool StyleRareNonInheritedData::clipPathDataEquivalent(const StyleRareNonInheritedData& o) const
+{
+ return dataEquivalent(m_clipPath, o.m_clipPath);
+}
+
} // namespace blink