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.
Changelog entry.
Merge branch 't/10833' into major
Block commands should work on full range - not only editable parts - decision what to do with non-editable elements will be made later.
Do not try to create an undo image with selection when locking undo manager, because contents might change.
Reset selection before faking it.
Introduce domInvalidated event.