[Webkit-unassigned] [Bug 94510] Inspector Bar does not reflect selected font styles correctly, when multiple <div>s are selected.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 22 13:39:06 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=94510





--- Comment #6 from Ryosuke Niwa <rniwa at webkit.org>  2012-08-22 13:39:04 PST ---
(From update of attachment 159809)
View in context: https://bugs.webkit.org/attachment.cgi?id=159809&action=review

> Source/WebKit/mac/WebView/WebHTMLView.mm:5725
> +// Inspector Bar did not reflect selected font styles correctly, because new line characters got their attributes from <div> renderers, which do not refelect their children's attributes correctly. <rdar://problem/11745163> Thus we overwrite newline character attributes with the attributes of the previous character here
> +static NSAttributedString *stringWithNewLineAttributesFixed(NSAttributedString *oldString)

Did you look at EditingStyle::triStateOfStyle? It seems like what you're trying to do is very similar.
Maybe there's a way to share some code there.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list