Canvas: moved Rect validation to a common function.
Canvas: moved Rect validation to a common function.

paulrouget/servo,huonw/servo,wpgallih/servo,dhananjay92/servo,CJ8664/servo,rixrix/servo,rnestler/servo,dagnir/servo,avadacatavra/servo,upsuper/servo,nerith/servo,youprofit/servo,SimonSapin/servo,nnethercote/servo,pyecs/servo,mt2d2/servo,rnestler/servo,saneyuki/servo,AnthonyBroadCrawford/servo,codemac/servo,A-deLuna/servo,evilpie/servo,mdibaiee/servo,rentongzhang/servo,SimonSapin/servo,karlito40/servo,vks/servo,dati91/servo,pgonda/servo,anthgur/servo,mdibaiee/servo,jgraham/servo,nerith/servo,samfoo/servo,saneyuki/servo,meh/servo,codemac/servo,zentner-kyle/servo,GreenRecycleBin/servo,notriddle/servo,anthgur/servo,ConnorGBrewster/servo,caldwell/servo,runarberg/servo,szeged/servo,dhananjay92/servo,tafia/servo,paulrouget/servo,notriddle/servo,pyfisch/servo,aweinstock314/servo,steveklabnik/servo,j3parker/servo,evilpie/servo,dati91/servo,DominoTree/servo,s142857/servo,jlegendary/servo,avadacatavra/servo,wpgallih/servo,nick-thompson/servo,runarberg/servo,dvberkel/servo,szeged/servo,karlito40/servo,jdramani/servo,caldwell/servo,aweinstock314/servo,brendandahl/servo,SimonSapin/servo,j3parker/servo,paulrouget/servo,s142857/servo,aidanhs/servo,saratang/servo,zhangjunlei26/servo,peterjoel/servo,szeged/servo,g-k/servo,dvberkel/servo,nnethercote/servo,larsbergstrom/servo,nick-thompson/servo,pgonda/servo,cbrewster/servo,rixrix/servo,pyfisch/servo,j3parker/servo,fiji-flo/servo,wpgallih/servo,KiChjang/servo,paulrouget/servo,vks/servo,bjwbell/servo,codemac/servo,saratang/servo,jgraham/servo,zentner-kyle/servo,jimberlage/servo,nerith/servo,AnthonyBroadCrawford/servo,eddyb/servo,larsbergstrom/servo,peterjoel/servo,aweinstock314/servo,mbrubeck/servo,dvberkel/servo,tempbottle/servo,mbrubeck/servo,GreenRecycleBin/servo,emilio/servo,ConnorGBrewster/servo,saneyuki/servo,g-k/servo,runarberg/servo,wpgallih/servo,anthgur/servo,deokjinkim/servo,rixrix/servo,ryancanhelpyou/servo,jlegendary/servo,nerith/servo,codemac/servo,pyecs/servo,samfoo/servo,rnestler/servo,walac/servo,wpgallih/servo,splav/servo,ConnorGBrewster/servo,CJ8664/servo,KiChjang/servo,boghison/servo,A-deLuna/servo,notriddle/servo,s142857/servo,RenaudParis/servo,meh/servo,aweinstock314/servo,wartman4404/servo,mt2d2/servo,KiChjang/servo,larsbergstrom/servo,rixrix/servo,saneyuki/servo,canaltinova/servo,dati91/servo,saneyuki/servo,upsuper/servo,caldwell/servo,vks/servo,mbrubeck/servo,SimonSapin/servo,RenaudParis/servo,akosel/servo,rnestler/servo,kindersung/servo,ConnorGBrewster/servo,meh/servo,hyowon/servo,mbrubeck/servo,thiagopnts/servo,dati91/servo,steveklabnik/servo,eddyb/servo,huonw/servo,eddyb/servo,boghison/servo,AnthonyBroadCrawford/servo,pgonda/servo,dsandeephegde/servo,huonw/servo,boghison/servo,fiji-flo/servo,mdibaiee/servo,KiChjang/servo,dvberkel/servo,nick-thompson/servo,nrc/servo,upsuper/servo,rentongzhang/servo,deokjinkim/servo,emilio/servo,peterjoel/servo,g-k/servo,wartman4404/servo,peterjoel/servo,j3parker/servo,tempbottle/servo,AnthonyBroadCrawford/servo,pyecs/servo,anthgur/servo,zentner-kyle/servo,dvberkel/servo,splav/servo,mt2d2/servo,pyfisch/servo,sadmansk/servo,caldwell/servo,zhangjunlei26/servo,WriterOfAlicrow/servo,steveklabnik/servo,cbrewster/servo,tafia/servo,canaltinova/servo,saratang/servo,CJ8664/servo,upsuper/servo,runarberg/servo,jimberlage/servo,RenaudParis/servo,notriddle/servo,DominoTree/servo,emilio/servo,canaltinova/servo,vks/servo,zhangjunlei26/servo,splav/servo,thiagopnts/servo,larsbergstrom/servo,nnethercote/servo,GyrosOfWar/servo,jgraham/servo,DominoTree/servo,g-k/servo,youprofit/servo,tafia/servo,fiji-flo/servo,dati91/servo,thiagopnts/servo,larsbergstrom/servo,GyrosOfWar/servo,anthgur/servo,jlegendary/servo,dsandeephegde/servo,canaltinova/servo,canaltinova/servo,j3parker/servo,pyfisch/servo,jdramani/servo,jdramani/servo,dati91/servo,rentongzhang/servo,thiagopnts/servo,nrc/servo,ryancanhelpyou/servo,dhananjay92/servo,mdibaiee/servo,peterjoel/servo,rixrix/servo,tafia/servo,mattnenterprise/servo,huonw/servo,szeged/servo,caldwell/servo,peterjoel/servo,dsandeephegde/servo,brendandahl/servo,nnethercote/servo,caldwell/servo,bjwbell/servo,tschneidereit/servo,mattnenterprise/servo,splav/servo,meh/servo,codemac/servo,splav/servo,mattnenterprise/servo,sadmansk/servo,aweinstock314/servo,rixrix/servo,huonw/servo,tempbottle/servo,hyowon/servo,zhangjunlei26/servo,RenaudParis/servo,dsandeephegde/servo,pyecs/servo,dagnir/servo,DominoTree/servo,zentner-kyle/servo,CJ8664/servo,eddyb/servo,tschneidereit/servo,KiChjang/servo,brendandahl/servo,jdramani/servo,huonw/servo,CJ8664/servo,tafia/servo,bjwbell/servo,youprofit/servo,dagnir/servo,samfoo/servo,aidanhs/servo,thiagopnts/servo,emilio/servo,notriddle/servo,jdramani/servo,kindersung/servo,GreenRecycleBin/servo,meh/servo,karlito40/servo,nrc/servo,larsbergstrom/servo,evilpie/servo,pyecs/servo,deokjinkim/servo,rnestler/servo,saneyuki/servo,upsuper/servo,sadmansk/servo,steveklabnik/servo,aweinstock314/servo,zentner-kyle/servo,codemac/servo,GyrosOfWar/servo,thiagopnts/servo,tempbottle/servo,akosel/servo,avadacatavra/servo,zentner-kyle/servo,mbrubeck/servo,jdramani/servo,A-deLuna/servo,jlegendary/servo,youprofit/servo,aidanhs/servo,aidanhs/servo,samfoo/servo,fiji-flo/servo,rixrix/servo,fiji-flo/servo,akosel/servo,GyrosOfWar/servo,paulrouget/servo,jimberlage/servo,wpgallih/servo,emilio/servo,peterjoel/servo,szeged/servo,rentongzhang/servo,CJ8664/servo,hyowon/servo,mt2d2/servo,brendandahl/servo,jgraham/servo,pgonda/servo,wartman4404/servo,larsbergstrom/servo,kindersung/servo,nnethercote/servo,karlito40/servo,rnestler/servo,bjwbell/servo,ryancanhelpyou/servo,akosel/servo,pyfisch/servo,tschneidereit/servo,tschneidereit/servo,rnestler/servo,evilpie/servo,walac/servo,s142857/servo,ConnorGBrewster/servo,szeged/servo,tafia/servo,emilio/servo,KiChjang/servo,zhangjunlei26/servo,meh/servo,karlito40/servo,wartman4404/servo,sadmansk/servo,jimberlage/servo,splav/servo,hyowon/servo,avadacatavra/servo,pyecs/servo,eddyb/servo,KiChjang/servo,AnthonyBroadCrawford/servo,thiagopnts/servo,mt2d2/servo,paulrouget/servo,mbrubeck/servo,GyrosOfWar/servo,karlito40/servo,aidanhs/servo,CJ8664/servo,codemac/servo,nnethercote/servo,zhangjunlei26/servo,dagnir/servo,eddyb/servo,jimberlage/servo,fiji-flo/servo,zhangjunlei26/servo,rentongzhang/servo,deokjinkim/servo,hyowon/servo,larsbergstrom/servo,WriterOfAlicrow/servo,larsbergstrom/servo,s142857/servo,j3parker/servo,huonw/servo,nerith/servo,saneyuki/servo,pgonda/servo,CJ8664/servo,eddyb/servo,A-deLuna/servo,canaltinova/servo,jlegendary/servo,pgonda/servo,runarberg/servo,dvberkel/servo,GyrosOfWar/servo,DominoTree/servo,dhananjay92/servo,nrc/servo,rentongzhang/servo,dvberkel/servo,walac/servo,dsandeephegde/servo,aweinstock314/servo,mattnenterprise/servo,notriddle/servo,pyfisch/servo,vks/servo,walac/servo,DominoTree/servo,saneyuki/servo,WriterOfAlicrow/servo,jimberlage/servo,tschneidereit/servo,zhangjunlei26/servo,evilpie/servo,s142857/servo,nick-thompson/servo,cbrewster/servo,bjwbell/servo,steveklabnik/servo,jgraham/servo,pyecs/servo,nrc/servo,ryancanhelpyou/servo,kindersung/servo,canaltinova/servo,szeged/servo,DominoTree/servo,pgonda/servo,rixrix/servo,emilio/servo,samfoo/servo,rixrix/servo,evilpie/servo,sadmansk/servo,DominoTree/servo,GreenRecycleBin/servo,boghison/servo,avadacatavra/servo,vks/servo,karlito40/servo,dsandeephegde/servo,ConnorGBrewster/servo,mt2d2/servo,dhananjay92/servo,nnethercote/servo,ConnorGBrewster/servo,ryancanhelpyou/servo,zentner-kyle/servo,AnthonyBroadCrawford/servo,GreenRecycleBin/servo,GreenRecycleBin/servo,peterjoel/servo,steveklabnik/servo,notriddle/servo,paulrouget/servo,nick-thompson/servo,mattnenterprise/servo,RenaudParis/servo,mdibaiee/servo,peterjoel/servo,paulrouget/servo,aidanhs/servo,youprofit/servo,mbrubeck/servo,tempbottle/servo,evilpie/servo,youprofit/servo,pyfisch/servo,GreenRecycleBin/servo,dsandeephegde/servo,runarberg/servo,avadacatavra/servo,szeged/servo,szeged/servo,KiChjang/servo,jgraham/servo,WriterOfAlicrow/servo,splav/servo,splav/servo,runarberg/servo,SimonSapin/servo,dhananjay92/servo,akosel/servo,nick-thompson/servo,evilpie/servo,bjwbell/servo,splav/servo,rentongzhang/servo,emilio/servo,g-k/servo,deokjinkim/servo,jimberlage/servo,rnestler/servo,cbrewster/servo,akosel/servo,anthgur/servo,fiji-flo/servo,A-deLuna/servo,jimberlage/servo,eddyb/servo,upsuper/servo,brendandahl/servo,RenaudParis/servo,WriterOfAlicrow/servo,boghison/servo,tafia/servo,GyrosOfWar/servo,paulrouget/servo,j3parker/servo,tschneidereit/servo,dagnir/servo,mattnenterprise/servo,zhangjunlei26/servo,peterjoel/servo,notriddle/servo,mdibaiee/servo,KiChjang/servo,hyowon/servo,ryancanhelpyou/servo,sadmansk/servo,bjwbell/servo,nnethercote/servo,deokjinkim/servo,walac/servo,nrc/servo,WriterOfAlicrow/servo,akosel/servo,nerith/servo,RenaudParis/servo,wartman4404/servo,mdibaiee/servo,cbrewster/servo,GreenRecycleBin/servo,A-deLuna/servo,thiagopnts/servo,canaltinova/servo,wartman4404/servo,dagnir/servo,wpgallih/servo,g-k/servo,splav/servo,DominoTree/servo,SimonSapin/servo,samfoo/servo,dati91/servo,tempbottle/servo,sadmansk/servo,wartman4404/servo,A-deLuna/servo,steveklabnik/servo,walac/servo,kindersung/servo,cbrewster/servo,aidanhs/servo,avadacatavra/servo,szeged/servo,anthgur/servo,pyfisch/servo,WriterOfAlicrow/servo,saratang/servo,SimonSapin/servo,boghison/servo,upsuper/servo,mbrubeck/servo,tschneidereit/servo,saneyuki/servo,cbrewster/servo,nrc/servo,kindersung/servo,dhananjay92/servo,tempbottle/servo,fiji-flo/servo,saratang/servo,emilio/servo,walac/servo,mattnenterprise/servo,saneyuki/servo,deokjinkim/servo,nerith/servo,caldwell/servo,nick-thompson/servo,notriddle/servo,nnethercote/servo,hyowon/servo,pyfisch/servo,wpgallih/servo,saratang/servo,mt2d2/servo,SimonSapin/servo,ConnorGBrewster/servo,DominoTree/servo,pyfisch/servo,jlegendary/servo,notriddle/servo,saratang/servo,dagnir/servo,meh/servo,g-k/servo,jlegendary/servo,vks/servo,samfoo/servo,emilio/servo,jdramani/servo,GreenRecycleBin/servo,KiChjang/servo,boghison/servo,kindersung/servo,jgraham/servo,avadacatavra/servo,s142857/servo,sadmansk/servo,ryancanhelpyou/servo,cbrewster/servo,mattnenterprise/servo,evilpie/servo,dati91/servo,paulrouget/servo,youprofit/servo,dsandeephegde/servo,brendandahl/servo,AnthonyBroadCrawford/servo,jimberlage/servo,nnethercote/servo,anthgur/servo,brendandahl/servo,larsbergstrom/servo,upsuper/servo,wpgallih/servo