mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-06 17:12:50 +00:00
simplify baseline code
This commit is contained in:
1 parent
6e0b20c921
commit
f81ddc60ec
1 file changed
+2
-6
@@ -200,14 +200,10 @@ var CPSystemTypesetterFactory;
|
||||
|
||||
if (!sameLine) //fix the _lineFragments when fontsizes differ
|
||||
{
|
||||
var l = _lineFragments.length,
|
||||
maxHeight = 0;
|
||||
var l = _lineFragments.length;
|
||||
|
||||
for (var i = 0 ; i < l ; i++)
|
||||
maxHeight = MAX(maxHeight, _lineFragments[i]._fragmentRect.size.height);
|
||||
|
||||
for (var i = 0 ; i < l ; i++)
|
||||
[_lineFragments[i] _adjustForHeight:maxHeight];
|
||||
[_lineFragments[i] _adjustForHeight:_lineHeight];
|
||||
}
|
||||
|
||||
if (!lineCount) // do not rescue on first line
|
||||
|
||||
Reference in new issue
Block a user