mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 509569. Avoid assertion by not storing structs with unused inherit logical box props in them, even though it would be ok to do so. r=dbaron
This commit is contained in:
parent
c92ceba9fd
commit
f203c2ec0f
2
layout/style/crashtests/509569-1.html
Normal file
2
layout/style/crashtests/509569-1.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!DOCTYPE html>
|
||||
<html style="-moz-border-start: inherit; border: none"><body></body></html>
|
@ -48,6 +48,7 @@ load 495269-2.html
|
||||
load 498036-1.html
|
||||
load 509155-1.html
|
||||
load 509156-1.html
|
||||
load 509569-1.html
|
||||
load 524252-1.html
|
||||
load font-face-truncated-src.html
|
||||
load 536789-1.html
|
||||
|
@ -2326,6 +2326,12 @@ nsRuleNode::AdjustLogicalBoxProp(nsStyleContext* aContext,
|
||||
if (RTLlogical)
|
||||
aValueRect.*(nsCSSRect::sides[aSide]) = aRTLLogicalValue;
|
||||
}
|
||||
} else if (aLTRLogicalValue.GetUnit() == eCSSUnit_Inherit ||
|
||||
aRTLLogicalValue.GetUnit() == eCSSUnit_Inherit) {
|
||||
// It actually is valid to store this in the ruletree, since
|
||||
// LTRlogical and RTLlogical are both false, but doing that will
|
||||
// trigger asserts. Silence those.
|
||||
aCanStoreInRuleTree = PR_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user