(node, context)
Implements S10.3.1
Implements S10.3.1
Implements S10 . 3 . 1
def calculate_inline_non_replaced_width(node, context):
    "Implements S10.3.1"
    if node.layout.margin_left == AUTO:  # P1
        node.layout.margin_left = 0

    if node.layout.margin_right == AUTO:  # P1
        node.layout.margin_right = 0

    # Use the actual width of the node.
    node.layout.content_width = node.intrinsic.width
def calculate_inline_non_replaced_width ( node , context ) : if node . layout . margin_left == AUTO : # P1 node . layout . margin_left = 0 if node . layout . margin_right == AUTO : # P1 node . layout . margin_right = 0 # Use the actual width of the node. node . layout . content_width = node . intrinsic . width