els_box : Move horizontal condition out of some loop in _els_box_layout
authorRyuan Choi <ryuan.choi@samsung.com>
Mon, 13 Jan 2014 06:47:04 +0000 (15:47 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 13 Jan 2014 06:47:05 +0000 (15:47 +0900)
commit2fdb1b33c1b8a516a6e53b706d519ef540dd3fb4
tree210ec51dbad4320e556dfbc11d706dd72915daec
parent62e6dd0b7f70b4e629aa112691f86d613a4abfa0
els_box : Move horizontal condition out of some loop in _els_box_layout

Summary:
Almost logic of both horizontal and vertical are same except different axis in
_els_box_layout.
This patch reduced code size and improved speed little bit by moving condition
out of the loop using some extra pointer variables.

In addition, removed unnecessary check routines.
There are already similar logic for them before and after.

Reviewers: raster, seoz, cedric

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D423
src/lib/els_box.c