Index: third_party/WebKit/Source/core/testing/Internals.cpp |
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp |
index bb8adbd85da00516c8f6d437adb757039ec4d2e5..2ba09b4b51f3199076fa92a78fd1015d801178a6 100644 |
--- a/third_party/WebKit/Source/core/testing/Internals.cpp |
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
@@ -730,6 +730,8 @@ Node* Internals::previousInFlatTree(Node* node, |
String Internals::elementLayoutTreeAsText(Element* element, |
ExceptionState& exceptionState) { |
ASSERT(element); |
+ element->document().view()->updateAllLifecyclePhases(); |
+ |
String representation = externalRepresentation(element); |
if (representation.isEmpty()) { |
exceptionState.throwDOMException( |