Merge branch 't/10886' into major
Image ratio is locked by default in Image2 dialog.
Changed the way lock ratio state is calculated.
Enforced lock ratio setup algorithm to consider dynamic resizing and edge cases with tricky rounding.
Introduced widget.data.lock.
Set initial lock ratio state using widget data.
Extracted the ratio check code to the separate, shared method.
Use helper method to check for ratio lock of new images.
Fixed: A custom ratio not considered while resizing with mouse.
Check whether an argument of toggleLockDimensions is boolean. Minor refactoring.
Created wrapper function getNatural for obtaining natural dimensions with IE8 fallback.
Refactoring: Renamed method to match naming convention.
Forced lock ratio on by default.
Fixed: Wrong method names after merge.