Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 760ec5fb3ca694f8408889b177226aedc70fcbfa..fa70fc036f03de5c56e24e7bb12dbdf7632ed2f0 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -2337,6 +2337,16 @@ void Internals::setFocused(bool focused) |
frame()->page()->focusController().setFocused(focused); |
} |
+bool Internals::ignoreLayoutWithPendingStylesheets(Document* document, ExceptionState& exceptionState) |
+{ |
+ if (!document) { |
+ exceptionState.throwDOMException(InvalidAccessError, "No context document is available."); |
+ return false; |
+ } |
+ |
+ return document->ignoreLayoutWithPendingStylesheets(); |
+} |
+ |
void Internals::setNetworkStateNotifierTestOnly(bool testOnly) |
{ |
networkStateNotifier().setTestUpdatesOnly(testOnly); |