private static void CompileBoxAreaNoKeyword(StylePropertyReader reader, out StyleLength top, out StyleLength right, out StyleLength bottom, out StyleLength left) { ShorthandApplicator.CompileBoxArea(reader, out top, out right, out bottom, out left); bool flag = top.keyword > StyleKeyword.Undefined; if (flag) { top.value = 0f; } bool flag2 = right.keyword > StyleKeyword.Undefined; if (flag2) { right.value = 0f; } bool flag3 = bottom.keyword > StyleKeyword.Undefined; if (flag3) { bottom.value = 0f; } bool flag4 = left.keyword > StyleKeyword.Undefined; if (flag4) { left.value = 0f; } }
public static void ApplyMargin(StylePropertyReader reader, ComputedStyle computedStyle) { StyleLength marginTop; StyleLength marginRight; StyleLength marginBottom; StyleLength marginLeft; ShorthandApplicator.CompileBoxArea(reader, out marginTop, out marginRight, out marginBottom, out marginLeft); computedStyle.nonInheritedData.marginTop = marginTop; computedStyle.nonInheritedData.marginRight = marginRight; computedStyle.nonInheritedData.marginBottom = marginBottom; computedStyle.nonInheritedData.marginLeft = marginLeft; }