Better build fix after r93384.
[WebKit-https.git] / Source / WebCore / rendering / RenderBlockLineLayout.cpp
index 04bcda6eaaf6568d2cf2197e2d34b674a714e751..2d2f42b1c88a70cf6a33e3c05288da8640db2643 100644 (file)
@@ -2299,11 +2299,7 @@ InlineIterator RenderBlock::LineBreaker::nextLineBreak(InlineBidiResolver& resol
                         breakWords = false;
                     }
 
-#if USE(ICU_UNICODE) && !UCONFIG_NO_COLLATION
-                    if (midWordBreak && !U16_IS_TRAIL(c) && !(U_GET_GC_MASK(c) & U_GC_M_MASK)) {
-#else
-                    if (midWordBreak && !U16_IS_TRAIL(c)) {
-#endif
+                    if (midWordBreak && !U16_IS_TRAIL(c) && !(category(c) & (Mark_NonSpacing | Mark_Enclosing | Mark_SpacingCombining))) {
                         // Remember this as a breakable position in case
                         // adding the end width forces a break.
                         lBreak.moveTo(current.m_obj, current.m_pos, current.m_nextBreakablePosition);