| 124 | } |
| 125 | |
| 126 | void HPNodeStyleSetPositionType(HPNodeRef node, PositionType positionType) { |
| 127 | if (node == nullptr || node->style.positionType == positionType) |
| 128 | return; |
| 129 | node->style.positionType = positionType; |
| 130 | node->markAsDirty(); |
| 131 | } |
| 132 | |
| 133 | void HPNodeStyleSetPosition(HPNodeRef node, CSSDirection dir, float value) { |
| 134 | if (node == nullptr || FloatIsEqual(node->style.position[dir], value)) |