Reviewed by Hyatt
Fix for this bug:
The styling code did not move to the next node when the starting position was
at the last offset of a node. Instead, it styled it. Clearly wrong. Solution
is to borrow a check from the delete algorithm. Though I call caretMaxOffset(),
which I consider deprecated, it is still the simplest and most strightforward
way to ask the right question for this kind of problem.
* khtml/editing/htmlediting.cpp:
(khtml::ApplyStyleCommand::applyInlineStyle): Fixed, as described above.
* layout-tests/editing/style/style-
3998892-fix-expected.txt: Added.
* layout-tests/editing/style/style-
3998892-fix.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8606
268f45cc-cd09-0410-ab3c-
d52691b4dbfc