git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14601
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-05-25 Dave Hyatt <hyatt@apple.com>
+
+ Make soft hyphens work on Win32 by special casing them
+ along with normal hyphens.
+
+ Reviewed by mjs
+
+ * rendering/break_lines.cpp:
+ (WebCore::nextBreakablePosition):
+
2006-05-25 Dave Hyatt <hyatt@apple.com>
Implement the fallback method containsCharacters for
#include "config.h"
#include "break_lines.h"
+#include "RenderText.h"
#include "DeprecatedString.h"
if (ch == ' ' || ch == '\n' || ch == '\t' || (breakNBSP && ch == 0xa0))
break;
// Match WinIE's breaking strategy, which is to always allow breaks after hyphens and question marks.
- if (lastCh == '-' || lastCh == '?')
+ if (lastCh == '-' || lastCh == '?' || lastCh == SOFT_HYPHEN)
break;
#if __APPLE__
// FIXME: Rewrite break location using ICU.