From faebbb2b8a81626eb34e45a04251f5a6ee8a4650 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Fri, 27 May 2016 23:13:54 +0200 Subject: [PATCH] fixed: font css properties were not considered when assessing visual identity --- AppKit/CPTextView/CPLayoutManager.j | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AppKit/CPTextView/CPLayoutManager.j b/AppKit/CPTextView/CPLayoutManager.j index 387e0fcbb..787d02eff 100644 --- a/AppKit/CPTextView/CPLayoutManager.j +++ b/AppKit/CPTextView/CPLayoutManager.j @@ -1313,7 +1313,9 @@ var _objectsInRange = function(aList, aRange) { if (newFragmentRuns[i].string !== oldFragmentRuns[i].string || !_RectEqualToRectHorizontally(newLineFragment._fragmentRect, _fragmentRect || - newFragmentRuns[i].elem.style.color !== oldFragmentRuns[i].elem.style.color)) + 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)) return NO; }