Index: Source/core/rendering/style/RenderStyle.h |
diff --git a/Source/core/rendering/style/RenderStyle.h b/Source/core/rendering/style/RenderStyle.h |
index 72f55cc44e747dc06d8bcf638f59900dee57ebcc..5e8811af391667fa5df50f7100e19f107461e8f3 100644 |
--- a/Source/core/rendering/style/RenderStyle.h |
+++ b/Source/core/rendering/style/RenderStyle.h |
@@ -473,8 +473,8 @@ public: |
const NinePieceImage& borderImage() const { return surround->border.image(); } |
StyleImage* borderImageSource() const { return surround->border.image().image(); } |
LengthBox borderImageSlices() const { return surround->border.image().imageSlices(); } |
- LengthBox borderImageWidth() const { return surround->border.image().borderSlices(); } |
- LengthBox borderImageOutset() const { return surround->border.image().outset(); } |
+ LengthBox borderImageWidth() const { return surround->border.image().borderSlices().lengthBox(); } |
+ LengthBox borderImageOutset() const { return surround->border.image().outset().lengthBox(); } |
LengthSize borderTopLeftRadius() const { return surround->border.topLeft(); } |
LengthSize borderTopRightRadius() const { return surround->border.topRight(); } |
@@ -650,8 +650,8 @@ public: |
StyleImage* maskBoxImageSource() const { return rareNonInheritedData->m_maskBoxImage.image(); } |
LengthBox maskBoxImageSlices() const { return rareNonInheritedData->m_maskBoxImage.imageSlices(); } |
bool maskBoxImageSlicesFill() const { return rareNonInheritedData->m_maskBoxImage.fill(); } |
- LengthBox maskBoxImageWidth() const { return rareNonInheritedData->m_maskBoxImage.borderSlices(); } |
- LengthBox maskBoxImageOutset() const { return rareNonInheritedData->m_maskBoxImage.outset(); } |
+ LengthBox maskBoxImageWidth() const { return rareNonInheritedData->m_maskBoxImage.borderSlices().lengthBox(); } |
+ LengthBox maskBoxImageOutset() const { return rareNonInheritedData->m_maskBoxImage.outset().lengthBox(); } |
EBorderCollapse borderCollapse() const { return static_cast<EBorderCollapse>(inherited_flags._border_collapse); } |
short horizontalBorderSpacing() const; |
@@ -1124,11 +1124,11 @@ public: |
} |
void setMaskBoxImageWidth(LengthBox slices) |
{ |
- rareNonInheritedData.access()->m_maskBoxImage.setBorderSlices(slices); |
+ rareNonInheritedData.access()->m_maskBoxImage.setBorderSlices(LengthOrNumberBox(slices)); |
} |
void setMaskBoxImageOutset(LengthBox outset) |
{ |
- rareNonInheritedData.access()->m_maskBoxImage.setOutset(outset); |
+ rareNonInheritedData.access()->m_maskBoxImage.setOutset(LengthOrNumberBox(outset)); |
} |
void setMaskXPosition(Length length) { SET_VAR(rareNonInheritedData, m_mask.m_xPosition, length); } |
void setMaskYPosition(Length length) { SET_VAR(rareNonInheritedData, m_mask.m_yPosition, length); } |