Rename InlineBox::remove() to removeFromParent
[WebKit-https.git] / Source / WebCore / rendering / RenderInline.cpp
index e4b6ad9..0fce14b 100644 (file)
@@ -107,8 +107,8 @@ void RenderInline::willBeDestroyed()
             // not have a parent that means they are either already disconnected or
             // root lines that can just be destroyed without disconnecting.
             if (firstLineBox()->parent()) {
-                for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox())
-                    box->remove();
+                for (auto box = firstLineBox(); box; box = box->nextLineBox())
+                    box->removeFromParent();
             }
         } else if (parent()) 
             parent()->dirtyLinesFromChangedChild(this);