Index: Source/core/editing/FrameSelection.cpp |
diff --git a/Source/core/editing/FrameSelection.cpp b/Source/core/editing/FrameSelection.cpp |
index 2e055de5e5116dc3f36bc3832bfafb6adeaeff89..4e48a8ac13c73bbbfbc2affb2770e695824485c5 100644 |
--- a/Source/core/editing/FrameSelection.cpp |
+++ b/Source/core/editing/FrameSelection.cpp |
@@ -1476,7 +1476,7 @@ void CaretBase::paintCaret(Node* node, GraphicsContext* context, const LayoutPoi |
void FrameSelection::debugRenderer(RenderObject *r, bool selected) const |
{ |
if (r->node()->isElementNode()) { |
- Element* element = static_cast<Element *>(r->node()); |
+ Element* element = toElement(r->node()); |
fprintf(stderr, "%s%s\n", selected ? "==> " : " ", element->localName().string().utf8().data()); |
} else if (r->isText()) { |
RenderText* textRenderer = toRenderText(r); |