Remove CSSPosition in favor of CSSEdge
Summary: When adding CSSEdge I kinda forgot we had CSSPosition. I should have just refactor renamed CSSPosition and added some fields. Well this cleans that up. Reviewed By: IanChilds Differential Revision: D3728740 fbshipit-source-id: 19dc817a637b80d1f6df8d76982feb2e1fb2705a
This commit is contained in:
committed by
Facebook Github Bot 5
parent
dd2346f8ac
commit
dab03cb800
File diff suppressed because it is too large
Load Diff
@@ -33,8 +33,8 @@ static bool eq(float a, float b) {
|
||||
static bool are_layout_equal(CSSNode *a, CSSNode *b) {
|
||||
if (!eq(a->layout.dimensions[CSSDimensionWidth], b->layout.dimensions[CSSDimensionWidth]) ||
|
||||
!eq(a->layout.dimensions[CSSDimensionHeight], b->layout.dimensions[CSSDimensionHeight]) ||
|
||||
!eq(a->layout.position[CSSPositionTop], b->layout.position[CSSPositionTop]) ||
|
||||
!eq(a->layout.position[CSSPositionLeft], b->layout.position[CSSPositionLeft]) ||
|
||||
!eq(a->layout.position[CSSEdgeTop], b->layout.position[CSSEdgeTop]) ||
|
||||
!eq(a->layout.position[CSSEdgeLeft], b->layout.position[CSSEdgeLeft]) ||
|
||||
!eq(CSSNodeChildCount(a), CSSNodeChildCount(b))) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user