....
Pull request: https://github.com/WebKit/WebKit/pull/5787
WinCairo Release build is reporting the following warnings. > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(471) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(443) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(470) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(478) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(443) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(475) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(443) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(475) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(471) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(443) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(470) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(478) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(471) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(443) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(470) : warning C4723: potential divide by 0 > WebCore\platform\graphics\texmap\TextureMapperLayer.cpp(478) : warning C4723: potential divide by 0 I'm using 0 division intentionally here to get positive/negative inifity to represent a pont at inifity. But, I should admit it's a bad practice. I have a plan to re-write the code to precisely calculate the bounding box of transformed layer by 4x4 matix. I think we should align MSVC compiler warning as much as GC and Clang .
Created attachment 463244 [details] [fast-cq] Patch
(In reply to Fujii Hironori from comment #2) > I have a plan to re-write the code to precisely calculate the bounding box of transformed layer by 4x4 matix. Filed: Bug 247042 – TextureMapper: Calculate the bounding box of a layer transformed by 4x4 matrix precisely by intersecting with the viewport
Created attachment 463246 [details] [fast-cq] Patch
Committed 255997@main (214a966eafad): <https://commits.webkit.org/255997@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 463246 [details].
<rdar://problem/101571279>