mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-09 14:10:05 +00:00
* Add test case for TextKit truncation style * Add fast path for text node measurement with default truncation * Use fast path more often * Reverse options order * Simplify implementation – no functional change * Share "isScaled" variable * Intersect with constrained rect * Add a failing test case for fast-path truncation * Add some more truncation tests, using slow path as reference image * Update the tests * In ASTextKitRenderer, intersect bounds with constrained rect * Add test case for TextKit truncation style * Add fast path for text node measurement with default truncation * Use fast path more often * Reverse options order * Simplify implementation – no functional change * Share "isScaled" variable * Intersect with constrained rect * Add a failing test case for fast-path truncation * Add some more truncation tests, using slow path as reference image * Update the tests * In ASTextKitRenderer, intersect bounds with constrained rect * Use maximumNumberOfLines property in text kit fast path Add reference images Disable fast-path for max-one-line case * Remove unneeded snapshot files