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 379675323aa0017be4140bbe2540ee4606c03a89..675eccd486d8d485f74d8ef1f940331e28488f94 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( |