Bug 1390432 - Get the right parent outline-width value during computation r?bholley
nsStyleOutline::RecalcData() method does a fixup to outline-width property and
stores the new value inside mActualOutlineWidth. But during computation of outline
data, we were still getting mOutlineWidth value instead of mActualOutlineWidth
and it was causing to get the wrong inherited value.
MozReview-Commit-ID: E7lrpceiXbD
--- a/layout/style/nsRuleNode.cpp
+++ b/layout/style/nsRuleNode.cpp
@@ -7935,17 +7935,17 @@ nsRuleNode::ComputeOutlineData(void* aSt
const RuleDetail aRuleDetail,
const RuleNodeCacheConditions aConditions)
{
COMPUTE_START_RESET(Outline, outline, parentOutline)
// outline-width: length, enum, inherit
Maybe<nscoord> coord =
ComputeLineWidthValue<eUnsetInitial>(
- *aRuleData->ValueForOutlineWidth(), parentOutline->mOutlineWidth,
+ *aRuleData->ValueForOutlineWidth(), parentOutline->GetOutlineWidth(),
nsPresContext::GetBorderWidthForKeyword(NS_STYLE_BORDER_WIDTH_MEDIUM),
aContext, mPresContext, conditions);
if (coord.isSome()) {
outline->mOutlineWidth = *coord;
}
// outline-offset: length, inherit
nsStyleCoord tempCoord;