public static void ApplyPadding(StylePropertyReader reader, ComputedStyle computedStyle) { StyleLength paddingTop; StyleLength paddingRight; StyleLength paddingBottom; StyleLength paddingLeft; ShorthandApplicator.CompileBoxAreaNoKeyword(reader, out paddingTop, out paddingRight, out paddingBottom, out paddingLeft); computedStyle.nonInheritedData.paddingTop = paddingTop; computedStyle.nonInheritedData.paddingRight = paddingRight; computedStyle.nonInheritedData.paddingBottom = paddingBottom; computedStyle.nonInheritedData.paddingLeft = paddingLeft; }
public static void ApplyBorderColor(StylePropertyReader reader, ComputedStyle computedStyle) { StyleColor borderTopColor; StyleColor borderRightColor; StyleColor borderBottomColor; StyleColor borderLeftColor; ShorthandApplicator.CompileBoxAreaNoKeyword(reader, out borderTopColor, out borderRightColor, out borderBottomColor, out borderLeftColor); computedStyle.nonInheritedData.borderTopColor = borderTopColor; computedStyle.nonInheritedData.borderRightColor = borderRightColor; computedStyle.nonInheritedData.borderBottomColor = borderBottomColor; computedStyle.nonInheritedData.borderLeftColor = borderLeftColor; }
private static void CompileBoxAreaNoKeyword(StylePropertyReader reader, out StyleFloat top, out StyleFloat right, out StyleFloat bottom, out StyleFloat left) { StyleLength styleLength; StyleLength styleLength2; StyleLength styleLength3; StyleLength styleLength4; ShorthandApplicator.CompileBoxAreaNoKeyword(reader, out styleLength, out styleLength2, out styleLength3, out styleLength4); top = styleLength.ToStyleFloat(); right = styleLength2.ToStyleFloat(); bottom = styleLength3.ToStyleFloat(); left = styleLength4.ToStyleFloat(); }
public static void ApplyBorderWidth(StylePropertyReader reader, ComputedStyle computedStyle) { StyleFloat borderTopWidth; StyleFloat borderRightWidth; StyleFloat borderBottomWidth; StyleFloat borderLeftWidth; ShorthandApplicator.CompileBoxAreaNoKeyword(reader, out borderTopWidth, out borderRightWidth, out borderBottomWidth, out borderLeftWidth); computedStyle.nonInheritedData.borderTopWidth = borderTopWidth; computedStyle.nonInheritedData.borderRightWidth = borderRightWidth; computedStyle.nonInheritedData.borderBottomWidth = borderBottomWidth; computedStyle.nonInheritedData.borderLeftWidth = borderLeftWidth; }
public static void ApplyBorderRadius(StylePropertyReader reader, ComputedStyle computedStyle) { StyleLength borderTopLeftRadius; StyleLength borderTopRightRadius; StyleLength borderBottomRightRadius; StyleLength borderBottomLeftRadius; ShorthandApplicator.CompileBoxAreaNoKeyword(reader, out borderTopLeftRadius, out borderTopRightRadius, out borderBottomRightRadius, out borderBottomLeftRadius); computedStyle.nonInheritedData.borderTopLeftRadius = borderTopLeftRadius; computedStyle.nonInheritedData.borderTopRightRadius = borderTopRightRadius; computedStyle.nonInheritedData.borderBottomRightRadius = borderBottomRightRadius; computedStyle.nonInheritedData.borderBottomLeftRadius = borderBottomLeftRadius; }