Patch Statements

Hi guys,

I am a new contributor to the brave community,

I developed a feature related to DOM and I want to contribute this, as of now I have kept this function in third_party/blink, which I think is not an appropriate way of contribution,

I want to know how the patch statements are generated so I can generate patch statements for my feature and contribute.

Can anyone please help me out with this?