Index: Source/core/rendering/RenderTreeAsText.cpp |
diff --git a/Source/core/rendering/RenderTreeAsText.cpp b/Source/core/rendering/RenderTreeAsText.cpp |
index e22b2c969142bef354d194e91a6778daa43ccda2..59c2959cfcb4e820592021a4c14802879f10abaf 100644 |
--- a/Source/core/rendering/RenderTreeAsText.cpp |
+++ b/Source/core/rendering/RenderTreeAsText.cpp |
@@ -804,7 +804,7 @@ String externalRepresentation(Element* element, RenderAsTextBehavior behavior) |
{ |
// Doesn't support printing mode. |
ASSERT(!(behavior & RenderAsTextPrintingMode)); |
- if (!(behavior & RenderAsTextDontUpdateLayout) && element->document()) |
+ if (!(behavior & RenderAsTextDontUpdateLayout)) |
element->document()->updateLayout(); |
RenderObject* renderer = element->renderer(); |