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

Unified Diff: Source/web/WebDocument.cpp

Issue 316053007: Navigation transitions: Added notifyTransitionsShown and setupTransitionsView to WebLocalFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review fix Created 6 years, 5 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
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebDocument.cpp
diff --git a/Source/web/WebDocument.cpp b/Source/web/WebDocument.cpp
index d0b9127038483670a7d083092589b1f46f303167..2fa209cfc825377e2c0ac5f2862a121fed7ee01b 100644
--- a/Source/web/WebDocument.cpp
+++ b/Source/web/WebDocument.cpp
@@ -265,6 +265,19 @@ WebElement WebDocument::createElement(const WebString& tagName)
return element;
}
+void WebDocument::setIsTransitionDocument()
+{
+ // This ensures the transition UA stylesheet gets applied.
+ unwrap<Document>()->setIsTransitionDocument();
+}
+
+void WebDocument::beginExitTransition(const WebString& cssSelector)
+{
+ RefPtr<Document> document = unwrap<Document>();
+ document->hideTransitionElements(cssSelector);
+ document->styleEngine()->enableExitTransitionStylesheets();
+}
+
WebAXObject WebDocument::accessibilityObject() const
{
const Document* document = constUnwrap<Document>();
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698