add 2 helper function: hasMargin and hasPadding
add 2 helper function: hasMargin and hasPadding

Review URL: http://codereview.appspot.com/4523044
linqiangl/compatibility-detector,linqiangl/compatibility-detector,linqiangl/compatibility-detector