mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-17 16:11:28 +00:00
fixed: Setting textColor only changes first lines color
This commit is contained in:
@@ -1311,10 +1311,11 @@ var _objectsInRange = function(aList, aRange)
|
||||
for (var i = 0; i < l; i++)
|
||||
{
|
||||
if (newFragmentRuns[i].string !== oldFragmentRuns[i].string ||
|
||||
!_RectEqualToRectHorizontally(newLineFragment._fragmentRect, _fragmentRect ||
|
||||
!_RectEqualToRectHorizontally(newLineFragment._fragmentRect, _fragmentRect) ||
|
||||
!newFragmentRuns[i].elem || !oldFragmentRuns[i].elem ||
|
||||
newFragmentRuns[i].elem.style.color !== oldFragmentRuns[i].elem.style.color ||
|
||||
newFragmentRuns[i].elem.style.fontFamily !== oldFragmentRuns[i]. elem.style.fontFamily ||
|
||||
newFragmentRuns[i].elem.style.fontSize !== oldFragmentRuns[i].elem.style.fontSize))
|
||||
newFragmentRuns[i].elem.style.fontFamily !== oldFragmentRuns[i].elem.style.fontFamily ||
|
||||
newFragmentRuns[i].elem.style.fontSize !== oldFragmentRuns[i].elem.style.fontSize)
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user