Use outermost containing isolate when constructing bidi runs
[WebKit-https.git] / Source / WebCore / rendering / InlineIterator.h
index 772029ad802a0197dc4e9f4e8c9c98731d36bbc8..07ea7963231686425a36b5875aab3dc07b26f683 100644 (file)
@@ -448,14 +448,11 @@ static inline bool isIsolatedInline(RenderObject* object)
     return object->isRenderInline() && isIsolated(object->style().unicodeBidi());
 }
 
-static inline RenderObject* containingIsolate(RenderObject* object, RenderObject* root)
+static inline RenderObject* highestContainingIsolateWithinRoot(RenderObject* object, RenderObject* root)
 {
     ASSERT(object);
     RenderObject* containingIsolateObject = 0;
     while (object && object != root) {
-        if (containingIsolateObject && !isIsolatedInline(object))
-            break;
-
         if (isIsolatedInline(object))
             containingIsolateObject = object;