Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1159)

Unified Diff: Source/core/testing/Internals.cpp

Issue 339573005: Wrong pending sheets test causing FOUC. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698