提交 50ad7788 编写于 作者: B Behdad Esfahbod

[coretext] Remove assert that kicks in on Mac OS 10.6

http://crbug.com/419769
上级 2b646fa0
...@@ -1034,10 +1034,20 @@ retry: ...@@ -1034,10 +1034,20 @@ retry:
buffer->len += num_glyphs; buffer->len += num_glyphs;
} }
/* Make sure all runs had the expected direction. */ /* Mac OS 10.6 doesn't have kCTTypesetterOptionForcedEmbeddingLevel,
bool backward = HB_DIRECTION_IS_BACKWARD (buffer->props.direction); * or if it does, it doesn't resepct it. So we get runs with wrong
assert (bool (status_and & kCTRunStatusRightToLeft) == backward); * directions. As such, disable the assert... It wouldn't crash, but
assert (bool (status_or & kCTRunStatusRightToLeft) == backward); * cursoring will be off...
*
* http://crbug.com/419769
*/
if (0)
{
/* Make sure all runs had the expected direction. */
bool backward = HB_DIRECTION_IS_BACKWARD (buffer->props.direction);
assert (bool (status_and & kCTRunStatusRightToLeft) == backward);
assert (bool (status_or & kCTRunStatusRightToLeft) == backward);
}
buffer->clear_positions (); buffer->clear_positions ();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册